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

Jordan Rose jordan_rose at apple.com
Thu Jan 31 09:23:24 PST 2013


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.

Hope that answers your question!
Jordan


On Jan 31, 2013, at 6:59 , Jyoti <jyoti.yalamanchili at gmail.com> wrote:

> Hello,
> What is the purpose of this header file system-header-simulator.h at llvm_3.1_src\tools\clang\test\Analysis ?
> 
> Regards,
> Jyoti
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130131/12322779/attachment.html>


More information about the cfe-dev mailing list