[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
Wed Jan 6 16:34:33 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.


Okay, done here for this specific case:

	http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100104/026071.html

And extended to the general case here:

	http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100104/026073.html
	http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100104/026074.html

Thanks for the suggestion!

	- Doug



More information about the cfe-commits mailing list