[cfe-commits] [PATCH] Disallow __has_include and __has_include_next outside of preprocessor directives

Aaron Ballman aaron at aaronballman.com
Tue Jan 15 14:37:10 PST 2013


This patch addresses PR14837, so that __has_include and
__has_include_next do not work outside of preprocessor directives.
This fixes a failing assertion, as well as clarifies the behavior (I
can update the public docs if we think it's desirable).  Patch
Includes test cases.

Thanks!

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr14837.patch
Type: application/octet-stream
Size: 3268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130115/31352bfa/attachment.obj>


More information about the cfe-commits mailing list