]> granicus.if.org Git - clang/commit
Reapplying r204952 a second time.
authorAaron Ballman <aaron@aaronballman.com>
Mon, 31 Mar 2014 13:14:44 +0000 (13:14 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 31 Mar 2014 13:14:44 +0000 (13:14 +0000)
commit3056e7cbc99ea69d655b110e4c6ceb92079522f6
tree1e677eb5eed25021e43959c8986a29f54bafb567
parent1fe9ec45cdd62dda07c38cf1f6e11a0ed9867847
Reapplying r204952 a second time.

Clean up the __has_attribute implementation without modifying its behavior.

Replaces the tablegen-driven AttrSpellings.inc, which lived in the lexing layer with AttrHasAttributeImpl.inc, which lives in the basic layer. Updates the preprocessor to call through to this new functionality which can take additional information into account (such as scopes and syntaxes).

Expose the ability for parts of the compiler to ask whether an attribute is supported for a given spelling (including scope), syntax, triple and language options.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205181 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/Basic/Attributes.h [new file with mode: 0644]
include/clang/Basic/CMakeLists.txt
include/clang/Basic/Makefile
include/clang/CMakeLists.txt
include/clang/Lex/CMakeLists.txt [deleted file]
include/clang/Lex/Makefile [deleted file]
include/clang/Makefile
lib/Basic/Attributes.cpp [new file with mode: 0644]
lib/Basic/CMakeLists.txt
lib/Lex/PPMacroExpansion.cpp
utils/TableGen/ClangAttrEmitter.cpp
utils/TableGen/TableGen.cpp
utils/TableGen/TableGenBackends.h