diff options
author | Kaelyn Uhrain <rikka@google.com> | 2012-06-06 20:54:51 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2012-06-06 20:54:51 +0000 |
commit | 8d3607bf22a6a70acce3722a758f02d4ea84fc3a (patch) | |
tree | c9471cc39172eac5648699c3ce71d8d4512cdfb9 /test/Parser/cxx-using-directive.cpp | |
parent | 36397dc6c1bf1513a3bac4eabe9209e5b2295a55 (diff) |
Allow CorrectTypo to add/modify nested name qualifiers to typos that
are otherwise too short to try to correct.
The TODOs added to two of the tests are for existing deficiencies in the
typo correction code that could be exposed by using longer identifiers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-using-directive.cpp')
-rw-r--r-- | test/Parser/cxx-using-directive.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Parser/cxx-using-directive.cpp b/test/Parser/cxx-using-directive.cpp index 1d781fbdcf..9a1a6de892 100644 --- a/test/Parser/cxx-using-directive.cpp +++ b/test/Parser/cxx-using-directive.cpp @@ -3,7 +3,8 @@ class A {}; namespace B { - namespace A {} // expected-note{{namespace '::B::A' defined here}} + namespace A {} // expected-note{{namespace '::B::A' defined here}} \ + // expected-note{{namespace 'B::A' defined here}} using namespace A ; } @@ -25,7 +26,7 @@ namespace D { } using namespace ! ; // expected-error{{expected namespace name}} -using namespace A ; // expected-error{{expected namespace name}} +using namespace A ; // expected-error{{no namespace named 'A'; did you mean 'B::A'?}} using namespace ::A // expected-error{{expected namespace name}} \ // expected-error{{expected ';' after namespace name}} B ; |