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