[Sema] Semantic analysis for empty-declaration and attribute-declaration.
authorMichael Han <fragmentshaders@gmail.com>
Fri, 22 Feb 2013 17:15:32 +0000 (17:15 +0000)
committerMichael Han <fragmentshaders@gmail.com>
Fri, 22 Feb 2013 17:15:32 +0000 (17:15 +0000)
commit84324357b8e3870166bd29adf4c4eb83686644d4
tree0d8c2a31b6bc5fe50f6d0d95f7d5df284176565f
parentadc1b070020c8badc664302b6bf2ac39bdf1b494
[Sema] Semantic analysis for empty-declaration and attribute-declaration.

Introduce a new AST Decl node "EmptyDecl" to model empty-declaration. Have attributes from attribute-declaration appertain
to the EmptyDecl node by creating the AST representations of these attributes and attach them to the EmptyDecl node so these
attributes can be sema checked just as attributes attached to "normal" declarations.

llvm-svn: 175900
19 files changed:
clang/include/clang/AST/Decl.h
clang/include/clang/AST/RecursiveASTVisitor.h
clang/include/clang/Basic/DeclNodes.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/Sema.h
clang/include/clang/Serialization/ASTBitCodes.h
clang/lib/AST/Decl.cpp
clang/lib/AST/DeclBase.cpp
clang/lib/AST/DeclPrinter.cpp
clang/lib/CodeGen/CGDecl.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/Parse/Parser.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Serialization/ASTCommon.cpp
clang/lib/Serialization/ASTReaderDecl.cpp
clang/lib/Serialization/ASTWriterDecl.cpp
clang/test/Parser/cxx0x-attributes.cpp
clang/test/SemaCXX/cxx11-ast-print.cpp
clang/tools/libclang/RecursiveASTVisitor.h