diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-01-04 17:27:12 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-01-04 17:27:12 +0000 |
| commit | 40f7a007e9d06078ff49e5bcc4587150c098fb66 (patch) | |
| tree | 9f83d68aa813218dfd240c765a2edf2630468820 /clang/test | |
| parent | d91a14dba56183b1f30851f0dc90e83086caab6e (diff) | |
| download | bcm5719-llvm-40f7a007e9d06078ff49e5bcc4587150c098fb66.tar.gz bcm5719-llvm-40f7a007e9d06078ff49e5bcc4587150c098fb66.zip | |
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
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/SemaObjC/undef-superclass-1.m | 2 |
1 files changed, 2 insertions, 0 deletions
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 |

