]> granicus.if.org Git - clang/commit
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)
commite3446ce886b20b363e093cbd400b6f4337efb6c4
tree542ba7fc652e1c0be4473d37c9ba0e4ab0c0b35e
parentbf260bb264a60e38c82b0e57dd2e9bf8d69249c2
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223468 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ReleaseNotes.rst
include/clang/Basic/Attributes.h
lib/Lex/PPMacroExpansion.cpp
test/Preprocessor/has_attribute.c
utils/TableGen/ClangAttrEmitter.cpp