]> granicus.if.org Git - clang/commit
[typo-correction] Apply name specifier corrections when forming a NNS
authorReid Kleckner <rnk@google.com>
Tue, 16 Feb 2016 19:16:20 +0000 (19:16 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 16 Feb 2016 19:16:20 +0000 (19:16 +0000)
commiteb267f6ce66e53bfe2cc7a6eaea030d4df0bf2da
tree0bff13645ec932af13dfd478012edd6e97bad34d
parente9d15f0df2ca67b7b57387f30bda4da204adb0a3
[typo-correction] Apply name specifier corrections when forming a NNS

Previously we would leave behind the old name specifier prefix, which
creates an invalid AST.  Other callers of CorrectTypo update their
CXXScopeSpec objects with the correction specifier if one is present.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260993 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCXXScopeSpec.cpp
test/SemaCXX/typo-correction-crash.cpp