[PATCH] Validate system headers when using -verify-pch

Ben Langmuir blangmuir at apple.com
Thu Feb 6 15:30:56 PST 2014


Stat and check system headers for staleness when using -verify-pch.  Also create the AST reader directly, rather than using createPCHExternalASTSource, since we don’t want to install the external source anyway, and it keeps us from cluttering the parameters to that function.

I wasn’t sure how to test this from within the lit tests, so if there is a nice way let me know and I will create a test.  It does work in my local testing where I can just “sudo touch /usr/include/sys/attr.h” to cause a failure to validate.

Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stat-sys-headers.patch
Type: application/octet-stream
Size: 10174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140206/a631a8df/attachment.obj>


More information about the cfe-commits mailing list