]> granicus.if.org Git - clang/commit
Add fixit hints for misplaced C++11 attributes around class specifiers.
authorMichael Han <fragmentshaders@gmail.com>
Mon, 7 Jan 2013 16:57:11 +0000 (16:57 +0000)
committerMichael Han <fragmentshaders@gmail.com>
Mon, 7 Jan 2013 16:57:11 +0000 (16:57 +0000)
commit07fc1ba7553f2f5bf26984091197311decd9028e
treef68851c0a290f161d2c0c9054da9763dbb9dc703
parent589dae7d52043af6085967fae0c31d32365de229
Add fixit hints for misplaced C++11 attributes around class specifiers.

Following r168626, in class declaration or definition, there are a combination of syntactic locations
where C++11 attributes could appear, and among those the only valid location permitted by standard is
between class-key and class-name. So for those attributes appear at wrong locations, fixit is used to
move them to expected location and we recover by applying them to the class specifier.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171757 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseDeclCXX.cpp
test/FixIt/fixit-cxx11-attributes.cpp [new file with mode: 0644]
test/Parser/cxx0x-attributes.cpp