]> granicus.if.org Git - clang/commit
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)
commitf64231e9f47234826fbcdc3b4fe0370ef6c9961d
tree5bf2e20734f073f7ee51d2c152d39c5a83abf442
parentfd9d0e13a17b915fa6b35e3a3465513d67f1482d
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167481 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseDecl.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.type/p3-0x.cpp
test/CXX/expr/expr.const/p5-0x.cpp
test/Parser/cxx0x-attributes.cpp
test/SemaCXX/cxx98-compat.cpp