brintos

brintos / llvm-project-archived public Read only

0
0
Text · 502 B · 2397824 Raw
19 lines · c
1// Like the compiler, the static analyzer treats some functions differently if2// they come from a system header -- for example, it is assumed that system3// functions do not arbitrarily free() their parameters, and that some bugs4// found in system headers cannot be fixed by the user and should be5// suppressed.6 7#pragma clang system_header8 9struct RecordInSystemHeader {10  int a;11  int b;12};13 14template <class T>15struct ContainerInSystemHeader {16  T &t;17  ContainerInSystemHeader(T& t) : t(t) {}18};19