]> granicus.if.org Git - clang/commit
Restrict fixit for missing 'class' in template template parameters.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 6 Apr 2012 05:26:43 +0000 (05:26 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 6 Apr 2012 05:26:43 +0000 (05:26 +0000)
commit9df1b963a69dc85a271b3791267e994485e0bfe1
tree1801e09d50213473238f9ebcb7970549d8e92fa0
parent7947bb127629faff4897f04e579d80fd0d7f97f0
Restrict fixit for missing 'class' in template template parameters.

Based on Doug's feedback to r153887 this omits the FixIt if the following token
isn't syntactically valid for the context. (not a comma, '...', identifier,
'>', or '>>')

There's a bunch of work to handle the '>>' case, but it makes for a much more
pleasant diagnostic in this case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154163 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
lib/Parse/ParseTemplate.cpp
test/FixIt/fixit-cxx0x.cpp
test/FixIt/fixit.cpp
test/FixIt/no-fixit.cpp [new file with mode: 0644]
test/Parser/cxx-template-decl.cpp