summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/fixit.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-14 20:27:54 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-14 20:27:54 +0000
commit2fb18b746fdb2613aab6207ae12e83cf55d7d582 (patch)
treecefe95b397aa2c1a45fbf428cb9628149b280635 /clang/test/FixIt/fixit.cpp
parent9e100384cb961bfcf325492fc2c0446a9d159cdc (diff)
downloadbcm5719-llvm-2fb18b746fdb2613aab6207ae12e83cf55d7d582.tar.gz
bcm5719-llvm-2fb18b746fdb2613aab6207ae12e83cf55d7d582.zip
Thread a Scope pointer into BuildRecoveryCallExpr to help typo
correction find names when a call failed. Fixes <rdar://problem/7853795>. llvm-svn: 101278
Diffstat (limited to 'clang/test/FixIt/fixit.cpp')
-rw-r--r--clang/test/FixIt/fixit.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit.cpp b/clang/test/FixIt/fixit.cpp
index 79c294b1d92..f596226e9f1 100644
--- a/clang/test/FixIt/fixit.cpp
+++ b/clang/test/FixIt/fixit.cpp
@@ -40,3 +40,12 @@ class B : public A {
void f() throw();
void f(); // expected-warning{{missing exception specification}}
+
+namespace rdar7853795 {
+ struct A {
+ bool getNumComponents() const; // expected-note{{declared here}}
+ void dump() const {
+ getNumComponenets(); // expected-error{{use of undeclared identifier 'getNumComponenets'; did you mean 'getNumComponents'?}}
+ }
+ };
+}
OpenPOWER on IntegriCloud