diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-06-19 08:57:53 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-06-19 08:57:53 +0000 |
commit | 86cdf2d60b0efbfc5e37c519baff03362856d1a5 (patch) | |
tree | 5b62ada8ee1b43f7537b36e2dc9174dca7f5d2e0 /lib/tsan/rtl/tsan_flags.h | |
parent | a92c0cb873b67babb1aa4bc9aaa5c3b4d6c2772e (diff) | |
download | compiler-rt-86cdf2d60b0efbfc5e37c519baff03362856d1a5.tar.gz compiler-rt-86cdf2d60b0efbfc5e37c519baff03362856d1a5.tar.bz2 compiler-rt-86cdf2d60b0efbfc5e37c519baff03362856d1a5.tar.xz |
[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
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_flags.h')
-rw-r--r-- | lib/tsan/rtl/tsan_flags.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/tsan/rtl/tsan_flags.h b/lib/tsan/rtl/tsan_flags.h index 6c516ed0..66d3cf85 100644 --- a/lib/tsan/rtl/tsan_flags.h +++ b/lib/tsan/rtl/tsan_flags.h @@ -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 { |