[cfe-commits] r92488 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDeclObjC.cpp test/SemaObjC/undef-superclass-1.m
Douglas Gregor
dgregor at apple.com
Mon Jan 4 10:20:19 PST 2010
On Jan 4, 2010, at 9:38 AM, Fariborz Jahanian wrote:
>
> On Jan 4, 2010, at 9:27 AM, Douglas Gregor wrote:
>
>> Author: dgregor
>> Date: Mon Jan 4 11:27:12 2010
>> New Revision: 92488
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=92488&view=rev
>> Log:
>> 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
>
>
> Sounds like a good idea. It is a warning and harmless. Message would
> be nicer if you could also
> point to the @interface NSString where the correct spelling
> potentially occurred.
>
> - Fariborz
That's a good point for typo correction in general; we could always
add a note specifying which entity was actually selected by typo
correction. Thanks!
- Doug
More information about the cfe-commits
mailing list