]> granicus.if.org Git - clang/commit
Improve typo correction involving nested name specifiers.
authorKaelyn Uhrain <rikka@google.com>
Wed, 15 Feb 2012 22:14:18 +0000 (22:14 +0000)
committerKaelyn Uhrain <rikka@google.com>
Wed, 15 Feb 2012 22:14:18 +0000 (22:14 +0000)
commit2d4d7fd0ca37b61406dfe58acbefa8cf20ee050a
tree46b2df60aa47c567592906491603f7e7df29e534
parentc2956e5681113bbcec5ff98833345166942a211b
Improve typo correction involving nested name specifiers.

Snooping in other namespaces when the identifier being corrected is
already qualified (i.e. a valid CXXScopeSpec is passed to CorrectTypo)
and ranking synthesized namespace qualifiers relative to the existing
qualifier is now performed. Support for disambiguating the string
representation of synthesized namespace qualifers has also been added
(the change to test/Parser/cxx-using-directive.cpp is an example of an
ambiguous relative qualifier).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150622 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLookup.cpp
test/Parser/cxx-using-directive.cpp
test/SemaCXX/missing-namespace-qualifier-typo-corrections.cpp