forked from OSchip/llvm-project
[analyzer] Explain why we have system-header-simulator*.h files.
Suggested by Csaba. Text based on an e-mail of mine on cfe-dev. llvm-svn: 174213
This commit is contained in:
parent
b6717cc6d0
commit
b54cfa310a
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue