From 40f7a007e9d06078ff49e5bcc4587150c098fb66 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 4 Jan 2010 17:27:12 +0000 Subject: When declaring an Objective-C implementation without a corresponding interface, suggest correction of typos. For example, given: @interface NSString @end @implementation NSstring @end we'll warn with: t.m:4:19: warning: cannot find interface declaration for 'NSstring'; did you mean 'NSString'? @implementation NSstring ^ However, since this is just a warning, we don't provide a fix-it hint. Good idea, Ted! llvm-svn: 92488 --- clang/test/SemaObjC/undef-superclass-1.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/test') diff --git a/clang/test/SemaObjC/undef-superclass-1.m b/clang/test/SemaObjC/undef-superclass-1.m index 7611cf3b155..56697e23c2b 100644 --- a/clang/test/SemaObjC/undef-superclass-1.m +++ b/clang/test/SemaObjC/undef-superclass-1.m @@ -31,3 +31,5 @@ @implementation RecursiveClass @end +@implementation iNTF3 // expected-warning{{cannot find interface declaration for 'iNTF3'; did you mean 'INTF3'?}} +@end -- cgit v1.2.3