[llvm-commits] [compiler-rt] r158707 - /compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h

Alexey Samsonov samsonov at google.com
Tue Jun 19 01:52:03 PDT 2012


Author: samsonov
Date: Tue Jun 19 03:52:02 2012
New Revision: 158707

URL: http://llvm.org/viewvc/llvm-project?rev=158707&view=rev
Log:
[Sanitizer] State that sanitizer_libc.h header can be included in the user code (and therefore it shouldn't include other sanitizer runtime headers).

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h?rev=158707&r1=158706&r2=158707&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h Tue Jun 19 03:52:02 2012
@@ -11,11 +11,14 @@
 // run-time libraries.
 // These tools can not use some of the libc functions directly because those
 // functions are intercepted. Instead, we implement a tiny subset of libc here.
+// NOTE: This file may be included into user code.
 //===----------------------------------------------------------------------===//
 #ifndef SANITIZER_LIBC_H
 #define SANITIZER_LIBC_H
 
-#include "sanitizer_internal_defs.h"
+// ----------- ATTENTION -------------
+// This header should NOT include any other headers from sanitizer runtime.
+#include "sanitizer_interface_defs.h"
 
 namespace __sanitizer {
 





More information about the llvm-commits mailing list