Teach Clang parser to reject C++11 attributes that appertain to declaration specifiers.
authorMichael Han <Michael.Han@autodesk.com>
Tue, 6 Nov 2012 19:34:54 +0000 (19:34 +0000)
committerMichael Han <Michael.Han@autodesk.com>
Tue, 6 Nov 2012 19:34:54 +0000 (19:34 +0000)
commit64536a6d250c71f9b73c35e8801056c22ffd7618
tree745e60c677ab38764c2bb483dc363901e2756c06
parent0914f0b262eb9f9bdfe805a414689844f7df3f75
Teach Clang parser to reject C++11 attributes that appertain to declaration specifiers.

We don't support any C++11 attributes that appertain to declaration specifiers so reject
the attributes in parser until we support them; this also conforms to what g++ 4.8 is doing.

llvm-svn: 167481
clang/include/clang/Parse/Parser.h
clang/lib/Parse/ParseDecl.cpp
clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/p3-0x.cpp
clang/test/CXX/expr/expr.const/p5-0x.cpp
clang/test/Parser/cxx0x-attributes.cpp
clang/test/SemaCXX/cxx98-compat.cpp