]> granicus.if.org Git - clang/commit
When adding a NamedDecl to a correction, add the underlying Decl (via
authorKaelyn Uhrain <rikka@google.com>
Mon, 19 Nov 2012 18:49:53 +0000 (18:49 +0000)
committerKaelyn Uhrain <rikka@google.com>
Mon, 19 Nov 2012 18:49:53 +0000 (18:49 +0000)
commit728948fba8ce2249db0a6fd228d883f38434289a
treec87a21d4e2fd6d8f38755e867e90a2dc29fc03bf
parent529a73de04a108fe74503a19d9933dbb2b1a6cf0
When adding a NamedDecl to a correction, add the underlying Decl (via
getUnderlyingDecl()) so that derivatives of
CorrectionCandidateCallback::ValidateCandidate(...) don't have to worry
about being thrown by UsingDecls and such.

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