]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/tsan/rtl/tsan_flags.h
Integrate capsicum-test into the FreeBSD test suite
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / tsan / rtl / tsan_flags.h
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 void InitializeFlags(Flags *flags, const char *env);
32 }  // namespace __tsan
33
34 #endif  // TSAN_FLAGS_H