diff options
author | Michael Han <fragmentshaders@gmail.com> | 2013-01-07 16:57:11 +0000 |
---|---|---|
committer | Michael Han <fragmentshaders@gmail.com> | 2013-01-07 16:57:11 +0000 |
commit | 07fc1ba7553f2f5bf26984091197311decd9028e (patch) | |
tree | f68851c0a290f161d2c0c9054da9763dbb9dc703 /test/Parser/cxx0x-attributes.cpp | |
parent | 589dae7d52043af6085967fae0c31d32365de229 (diff) |
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
Diffstat (limited to 'test/Parser/cxx0x-attributes.cpp')
-rw-r--r-- | test/Parser/cxx0x-attributes.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/Parser/cxx0x-attributes.cpp b/test/Parser/cxx0x-attributes.cpp index 90e73004f6..a1268a8118 100644 --- a/test/Parser/cxx0x-attributes.cpp +++ b/test/Parser/cxx0x-attributes.cpp @@ -64,7 +64,6 @@ class [[]] class_attr {}; union [[]] union_attr; // Checks attributes placed at wrong syntactic locations of class specifiers. -// FIXME: provide fix-it hint. class [[]] [[]] attr_after_class_name_decl [[]] [[]]; // expected-error {{an attribute list cannot appear here}} |