]> granicus.if.org Git - clang/commit
Added rudimentary C++0x attribute support.
authorSean Hunt <rideau3@gmail.com>
Sat, 21 Nov 2009 08:43:09 +0000 (08:43 +0000)
committerSean Hunt <rideau3@gmail.com>
Sat, 21 Nov 2009 08:43:09 +0000 (08:43 +0000)
commitbbd37c62e34db3f5a95c899723484a76c71d7757
tree6968f0bb9f714cd41a2035844e46e45d13736a9d
parent7c5c965b876c4c698d22b1e38b6b0b2534036110
Added rudimentary C++0x attribute support.
The following attributes are currently supported in C++0x attribute
lists (and in GNU ones as well):
 - align() - semantics believed to be conformant to n3000, except for
   redeclarations and what entities it may apply to
 - final - semantics believed to be conformant to CWG issue 817's proposed
   wording, except for redeclarations
 - noreturn - semantics believed to be conformant to n3000, except for
   redeclarations
 - carries_dependency - currently ignored (this is an optimization hint)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89543 91177308-0d34-0410-b5e6-96231b3b80d8
26 files changed:
include/clang/AST/Attr.h
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Parse/AttributeList.h
include/clang/Parse/Parser.h
lib/AST/ASTContext.cpp
lib/AST/RecordLayoutBuilder.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Frontend/PCHReaderDecl.cpp
lib/Frontend/PCHWriter.cpp
lib/Parse/AttributeList.cpp
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseExprCXX.cpp
lib/Parse/ParseObjc.cpp
lib/Parse/ParseStmt.cpp
lib/Parse/ParseTemplate.cpp
lib/Parse/ParseTentative.cpp
lib/Parse/Parser.cpp
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaDeclCXX.cpp
test/Parser/cxx0x-attributes.cpp [new file with mode: 0644]
test/SemaCXX/attr-cxx0x.cpp [new file with mode: 0644]