Fix typo correction of one qualified name to another.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 12 Oct 2012 20:00:44 +0000 (20:00 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 12 Oct 2012 20:00:44 +0000 (20:00 +0000)
commit04ea41c39a65b17fe8e5c4f8ba4caa9f3841f9cf
treeffa9d11355aa11f1cbb129f01934b91feca007af
parent84d3779819c3b7278d85d76c33f9ca8cf9a4facc
Fix typo correction of one qualified name to another.

When suggesting "foo::bar" as a correction for "fob::bar" we mistakenly
replaced only "bar" with "foo::bar" producing "fob::foo::bar" which was broken.

This corrects that replacement in as many places as I could find & provides
test cases for all those cases I could find a test case for. There are a couple
that don't seem to be reachable (one looks entirely dead, the other just
doesn't seem to ever get called with a namespace to namespace change).

Review by Richard Smith ( http://llvm-reviews.chandlerc.com/D57 ).

llvm-svn: 165817
clang/include/clang/Sema/TypoCorrection.h
clang/lib/Sema/SemaCXXScopeSpec.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaExprMember.cpp
clang/lib/Sema/SemaLookup.cpp
clang/lib/Sema/SemaTemplate.cpp
clang/test/FixIt/typo.cpp