]> granicus.if.org Git - clang/commit
Implement first TD-based usage of attributes.
authorSean Hunt <rideau3@gmail.com>
Wed, 16 Jun 2010 23:43:53 +0000 (23:43 +0000)
committerSean Hunt <rideau3@gmail.com>
Wed, 16 Jun 2010 23:43:53 +0000 (23:43 +0000)
commit387475d0c18aaeb022108de9d33b6c9fb7998843
tree59fb00f350313e5229bfa01e465c3c2da30a631b
parentf13ca06e57ac094ed05ea08c26a499af1ba0ce88
Implement first TD-based usage of attributes.

Currently, there are two effective changes:

 - Attr::Kind has been changed to attr::Kind, in a separate namespace
   rather than the Attr class. This is because the enumerator needs to
   be visible to parse.
 - The class definitions for the C++0x attributes other than aligned are
   generated by TableGen.

The specific classes generated by TableGen are controlled by an array in
TableGen (see the accompanying commit to the LLVM repository). I will be
expanding the amount of code generated as I develop the new attributes system
while initially keeping it confined to these attributes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106172 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Attr.h
include/clang/AST/Makefile
include/clang/Basic/Attr.td [new file with mode: 0644]
include/clang/Basic/AttrKinds.h [new file with mode: 0644]
include/clang/Basic/DeclNodes.td
include/clang/Basic/Makefile
include/clang/Basic/StmtNodes.td
lib/AST/AttrImpl.cpp
lib/Frontend/PCHReaderDecl.cpp
lib/Frontend/PCHWriter.cpp
tools/libclang/CXCursor.cpp