Debian Codegraph @

clang/test/Analysis/Inputs/system-header-simulator-for-protobuf.h

raw
1 // Like the compiler, the static analyzer treats some functions differently if
2 // they come from a system header -- for example, it is assumed that system
3 // functions do not arbitrarily free() their parameters, and that some bugs
4 // found in system headers cannot be fixed by the user and should be
5 // suppressed.
6 #pragma clang system_header
7
8 class Arena;
9 class MessageLite {
10 int SomeArbitraryField;
11 };
12
13 // Originally declared in generated_message_util.h
14 MessageLite *GetOwnedMessageInternal(Arena *, MessageLite *, Arena *);
15
16 // Not a real protobuf function -- just introduced to validate that this file
17 // is handled as a system header.
18 void SomeOtherFunction(MessageLite *);