]> granicus.if.org Git - clang/commit
Don't allow multiple correction candidates that have the same identifier
authorKaelyn Uhrain <rikka@google.com>
Fri, 1 Jun 2012 18:11:16 +0000 (18:11 +0000)
committerKaelyn Uhrain <rikka@google.com>
Fri, 1 Jun 2012 18:11:16 +0000 (18:11 +0000)
commit784ae8e5c6b557e2395991c6008293660f5afe66
tree8d44a9ac9af17e9f9894ce814f146af3b7c38ded
parent29fbfc21924a692155ac8e4e281f17438fe27d63
Don't allow multiple correction candidates that have the same identifier
but different nested name specifiers to quietly clobber each other so
only one remains if they do not refer to the same NamedDecl. Fixes
PR12951.

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