[cfe-dev] query regarding system-header-simulator.h

Csaba Raduly rcsaba at gmail.com
Fri Feb 1 01:09:38 PST 2013


On Thu, Jan 31, 2013 at 6:23 PM, Jordan Rose  wrote:
> Hi, Jyoti. 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. system-header-simulator.h uses "#pragma clang system_header" so
> that this behavior can be tested without relying on the actual headers on
> your system.

There ought to be a comment to that effect :)

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds



More information about the cfe-dev mailing list