1 //===-- tsan_flags.h --------------------------------------------*- C++ -*-===//
2 //
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
5 //
6 //===----------------------------------------------------------------------===//
7 //
8 // This file is a part of ThreadSanitizer (TSan), a race detector.
9 // NOTE: This file may be included into user code.
10 //===----------------------------------------------------------------------===//
11 
12 #ifndef TSAN_FLAGS_H
13 #define TSAN_FLAGS_H
14 
15 #include "sanitizer_common/sanitizer_flags.h"
16 #include "sanitizer_common/sanitizer_deadlock_detector_interface.h"
17 
18 namespace __tsan {
19 
20 struct Flags : DDFlags {
21 #define TSAN_FLAG(Type, Name, DefaultValue, Description) Type Name;
22 #include "tsan_flags.inc"
23 #undef TSAN_FLAG
24 
25   void SetDefaults();
26   void ParseFromString(const char *str);
27 };
28 
29 void InitializeFlags(Flags *flags, const char *env);
30 }  // namespace __tsan
31 
32 #endif  // TSAN_FLAGS_H
33