]> granicus.if.org Git - clang/commit
Look for corrections in enclosing namespaces that require a global NestedNameSpecifier.
authorKaelyn Uhrain <rikka@google.com>
Tue, 2 Jul 2013 23:47:35 +0000 (23:47 +0000)
committerKaelyn Uhrain <rikka@google.com>
Tue, 2 Jul 2013 23:47:35 +0000 (23:47 +0000)
commitcaa16dd469b6f7bfb5bce05afd8772f5d4196322
treef15eba343f82e75fec0fe741321bb9442131370c
parent8ed38d8046e642c2d81775ada2ecee821f2e2a02
Look for corrections in enclosing namespaces that require a global NestedNameSpecifier.

CorrectTypo will now see and consider those corrections that are effectively
shadowed by other declarations in a closer context when resolved via an
unqualified lookup. This involves adding any parent namespaces to the set of
namespaces as fully-qualified name specifiers, and also adding potential
corrections that passed name lookup but were rejected by the given
CorrectionCandidateCallback into the set of failed corrections that should be
tried with the set of namespace specifiers.

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