diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-04-27 03:47:06 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-04-27 03:47:06 +0000 |
commit | 5e16c168fd87d3acf0c947a052c62f7b1de5b596 (patch) | |
tree | adb51639d507a1063e4b7b7402afb14df202a9dd /clang/test/FixIt/typo.cpp | |
parent | 713dab5695c17664c8596c212ca5aa0686b69e57 (diff) | |
download | bcm5719-llvm-5e16c168fd87d3acf0c947a052c62f7b1de5b596.tar.gz bcm5719-llvm-5e16c168fd87d3acf0c947a052c62f7b1de5b596.zip |
Improve diagnostics for typo correction via Sema::ClassifyName(), by
looking at the context and the correction and using a custom
diagnostic. Also, enable some Fix-It tests that were somewhat lamely
disabled.
llvm-svn: 130283
Diffstat (limited to 'clang/test/FixIt/typo.cpp')
-rw-r--r-- | clang/test/FixIt/typo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/FixIt/typo.cpp b/clang/test/FixIt/typo.cpp index d1e732fd1db..440db455189 100644 --- a/clang/test/FixIt/typo.cpp +++ b/clang/test/FixIt/typo.cpp @@ -1,7 +1,8 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: cp %s %t -// RUN: %clang_cc1 -fsyntax-only -fixit -x c++ %t || true +// RUN: not %clang_cc1 -fsyntax-only -fixit -x c++ %t // RUN: %clang_cc1 -fsyntax-only -pedantic -Werror -x c++ %t +// RUN: grep test_string %t namespace std { template<typename T> class basic_string { // expected-note 2{{'basic_string' declared here}} |