]> granicus.if.org Git - clang/commitdiff
[analyzer] Explain why we have system-header-simulator*.h files.
authorJordan Rose <jordan_rose@apple.com>
Fri, 1 Feb 2013 19:50:01 +0000 (19:50 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 1 Feb 2013 19:50:01 +0000 (19:50 +0000)
Suggested by Csaba. Text based on an e-mail of mine on cfe-dev.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174213 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/Inputs/system-header-simulator-cxx.h
test/Analysis/Inputs/system-header-simulator-for-simple-stream.h
test/Analysis/Inputs/system-header-simulator-objc.h
test/Analysis/Inputs/system-header-simulator.h

index e762d0a1bdfb261e74bebb4f95cd07d8f50ed4af..faca0b41aa6ef20b98c70e0ecb1150b1490f2243 100644 (file)
@@ -1,3 +1,8 @@
+// Like the compiler, the static analyzer treats some functions differently if
+// they come from a system header -- for example, it is assumed that system
+// functions do not arbitrarily free() their parameters, and that some bugs
+// found in system headers cannot be fixed by the user and should be
+// suppressed.
 #pragma clang system_header
 
 namespace std {
index 99986f4549958952ae1f1a484947be8514270505..f08f3f6e3ab0022eda0491685bc439ef67101b20 100644 (file)
@@ -1,4 +1,8 @@
-
+// Like the compiler, the static analyzer treats some functions differently if
+// they come from a system header -- for example, it is assumed that system
+// functions do not arbitrarily free() their parameters, and that some bugs
+// found in system headers cannot be fixed by the user and should be
+// suppressed.
 #pragma clang system_header
 
 typedef struct __sFILE {
index a647b3740406de49af506af5c76f41de26322e7b..ecc99e17c495d38d523cc3465265c04f41af5a7e 100644 (file)
@@ -1,3 +1,8 @@
+// Like the compiler, the static analyzer treats some functions differently if
+// they come from a system header -- for example, it is assumed that system
+// functions do not arbitrarily free() their parameters, and that some bugs
+// found in system headers cannot be fixed by the user and should be
+// suppressed.
 #pragma clang system_header
 
 typedef unsigned int UInt32;
index e28b8906037215610725975f85b9d9bbf2fba504..4c12131645a764b68f188a2a84d507b13ad8f8f3 100644 (file)
@@ -1,3 +1,8 @@
+// Like the compiler, the static analyzer treats some functions differently if
+// they come from a system header -- for example, it is assumed that system
+// functions do not arbitrarily free() their parameters, and that some bugs
+// found in system headers cannot be fixed by the user and should be
+// suppressed.
 #pragma clang system_header
 
 typedef struct _FILE FILE;