Be smarter when parsing variable declarations with unknown types.
authorKaelyn Takata <rikka@google.com>
Tue, 14 Oct 2014 21:57:21 +0000 (21:57 +0000)
committerKaelyn Takata <rikka@google.com>
Tue, 14 Oct 2014 21:57:21 +0000 (21:57 +0000)
commit2f448467e4254ddc3191136c968e6054bc009b88
treebad2b7c9940fdc8e166679ce80231f6544dd0b93
parent172d37d3b92ca70e65f11f9a7caf7af4c8a5e44f
Be smarter when parsing variable declarations with unknown types.

Specifically, avoid typo-correcting the variable name into a type before
typo-correcting the actual type name in the declaration. Doing so
results in a very unpleasant cascade of errors, with the typo correction
of the actual type name being buried in the middle.

llvm-svn: 219732
clang/lib/Parse/ParseTentative.cpp
clang/test/SemaCXX/typo-correction-pt2.cpp