]> granicus.if.org Git - clang/commit
Improve C++11 attribute parsing.
authorMichael Han <Michael.Han@autodesk.com>
Wed, 3 Oct 2012 01:56:22 +0000 (01:56 +0000)
committerMichael Han <Michael.Han@autodesk.com>
Wed, 3 Oct 2012 01:56:22 +0000 (01:56 +0000)
commit6880f492365cc4fa4c941aa83688635003ee7498
tree75cf9a2e19776577855988ee5cfd7789b5d3fa03
parent48314cf6a289bc5a082d8c769c58a38f924c93b7
Improve C++11 attribute parsing.

- General C++11 attributes were previously parsed and ignored. Now they are parsed and stored in AST.
- Add support to parse arguments of attributes that in 'gnu' namespace.
- Differentiate unknown attributes and known attributes that can't be applied to statements when emitting diagnostic.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165082 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Sema/SemaStmtAttr.cpp
test/CXX/dcl.dcl/dcl.attr/dcl.attr.grammar/p6.cpp
test/Parser/cxx0x-attributes.cpp
test/Parser/cxx11-stmt-attributes.cpp
test/Parser/objcxx11-attributes.mm
test/SemaCXX/switch-implicit-fallthrough-per-method.cpp