From c2fa169d6c8f7975ea9e50c2c1e9dfdbcc071216 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 28 Jun 2011 16:20:02 +0000 Subject: Add support for C++ namespace-aware typo correction, e.g., correcting vector to std::vector Patch by Kaelyn Uhrain, with minor tweaks + PCH support from me. Fixes PR5776/. Thanks Kaelyn! llvm-svn: 134007 --- clang/test/FixIt/typo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/test/FixIt/typo.cpp') diff --git a/clang/test/FixIt/typo.cpp b/clang/test/FixIt/typo.cpp index f8b5352374f..e35a0f54069 100644 --- a/clang/test/FixIt/typo.cpp +++ b/clang/test/FixIt/typo.cpp @@ -74,3 +74,9 @@ int foo() { unsinged *ptr = 0; // expected-error{{use of undeclared identifier 'unsinged'; did you mean 'unsigned'?}} return *i + *ptr + global_val; // expected-error{{use of undeclared identifier 'global_val'; did you mean 'global_value'?}} } + +namespace nonstd { + typedef std::basic_string yarn; // expected-note{{'nonstd::yarn' declared here}} +} + +yarn str4; // expected-error{{unknown type name 'yarn'; did you mean 'nonstd::yarn'?}} -- cgit v1.2.3