]> granicus.if.org Git - clang/commit
Don't eagerly typo-correct to a keyword if the next token is a right paren.
authorKaelyn Takata <rikka@google.com>
Fri, 10 Apr 2015 19:16:46 +0000 (19:16 +0000)
committerKaelyn Takata <rikka@google.com>
Fri, 10 Apr 2015 19:16:46 +0000 (19:16 +0000)
commitff7b692c11c51243e4663dd9b237c37ce966f6d1
treed91a861ce633a2a286ecd420a35003e7140b677f
parent78999de49c1acdc7f435dfd36acb97c2b203fde7
Don't eagerly typo-correct to a keyword if the next token is a right paren.

Take advantage of the delayed typo no longer being eagerly corrected to
a keyword to filter out keyword corrections (and other things like
unresolved & overloaded expressions, which have placeholder types) when
correcting typos inside of a decltype().

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234623 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseDeclCXX.cpp
lib/Parse/ParseExpr.cpp
test/SemaCXX/typo-correction-cxx11.cpp [new file with mode: 0644]