forked from OSchip/llvm-project
[TSan] Add a comment that tsan_flags.h may be included in the user code, and therefore shouldn't include other headers from TSan or common sanitizer runtime. User may need tsan_flags.h to provide its implementation of __tsan::OverrideFlags
llvm-svn: 158708
This commit is contained in:
parent
af70c09b84
commit
b1c3991915
|
@ -8,12 +8,18 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This file is a part of ThreadSanitizer (TSan), a race detector.
|
||||
//
|
||||
// NOTE: This file may be included into user code.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef TSAN_FLAGS_H
|
||||
#define TSAN_FLAGS_H
|
||||
|
||||
// ----------- ATTENTION -------------
|
||||
// ThreadSanitizer user may provide its implementation of weak
|
||||
// symbol __tsan::OverrideFlags(__tsan::Flags). Therefore, this
|
||||
// header may be included in the user code, and shouldn't include
|
||||
// other headers from TSan or common sanitizer runtime.
|
||||
|
||||
namespace __tsan {
|
||||
|
||||
struct Flags {
|
||||
|
|
Loading…
Reference in New Issue