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
Showing
- clang/include/clang/Parse/Parser.h 5 additions, 0 deletionsclang/include/clang/Parse/Parser.h
- clang/lib/Parse/ParseDecl.cpp 19 additions, 1 deletionclang/lib/Parse/ParseDecl.cpp
- clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/p3-0x.cpp 1 addition, 1 deletionclang/test/CXX/dcl.dcl/dcl.spec/dcl.type/p3-0x.cpp
- clang/test/CXX/expr/expr.const/p5-0x.cpp 4 additions, 4 deletionsclang/test/CXX/expr/expr.const/p5-0x.cpp
- clang/test/Parser/cxx0x-attributes.cpp 7 additions, 0 deletionsclang/test/Parser/cxx0x-attributes.cpp
- clang/test/SemaCXX/cxx98-compat.cpp 1 addition, 1 deletionclang/test/SemaCXX/cxx98-compat.cpp
Loading
Please register or sign in to comment