]> granicus.if.org Git - clang/commit
Allow CorrectTypo to replace CXXScopeSpecifiers that refer to classes.
authorKaelyn Uhrain <rikka@google.com>
Sat, 19 Oct 2013 00:05:00 +0000 (00:05 +0000)
committerKaelyn Uhrain <rikka@google.com>
Sat, 19 Oct 2013 00:05:00 +0000 (00:05 +0000)
commitb5c7768a74936d4e2c7a484570a638cb74702d8b
tree69e96d3f123bfb20f5f89968fa967db8d7c59bbc
parent6e4f6f865010649bc3969e57436b5501544a0c39
Allow CorrectTypo to replace CXXScopeSpecifiers that refer to classes.

Now that CorrectTypo knows how to correctly search classes for typo
correction candidates, there is no good reason to only replace an
existing CXXScopeSpecifier if it refers to a namespace. While the actual
enablement was a matter of changing a single comparison, the fallout
from enabling the functionality required a lot more code changes
(including my two previous commits).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193020 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExprMember.cpp
lib/Sema/SemaLookup.cpp
test/CXX/class.access/class.friend/p1.cpp
test/CXX/class.access/p6.cpp
test/CXX/temp/temp.decls/temp.class/temp.mem.enum/p1.cpp
test/Parser/cxx-using-directive.cpp
test/Parser/switch-recovery.cpp
test/SemaCXX/missing-members.cpp
test/SemaCXX/typo-correction-pt2.cpp
test/SemaCXX/typo-correction.cpp
test/SemaTemplate/temp_arg_nontype.cpp