Modify __has_attribute so that it only looks for GNU-style attributes. Removes the...
authorAaron Ballman <aaron@aaronballman.com>
Fri, 5 Dec 2014 15:24:55 +0000 (15:24 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 5 Dec 2014 15:24:55 +0000 (15:24 +0000)
commita6f759e423940dd5357772372524daf469c40ff1
treec376ec6d41375275bc7e571c8f32286baf460191
parent3c0f9b4a7d0b26f23ea2227d6c58cec00d9c3459
Modify __has_attribute so that it only looks for GNU-style attributes. Removes the ability to look for generic attributes and keywords via this macro, which has the potential to be a breaking change. However, since there is __has_cpp_attribute and __has_declspec_attribute, and given the limited usefulness of querying a generic attribute name regardless of syntax, this seems like the correct path forward.

llvm-svn: 223468
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/Attributes.h
clang/lib/Lex/PPMacroExpansion.cpp
clang/test/Preprocessor/has_attribute.c
clang/utils/TableGen/ClangAttrEmitter.cpp