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 _______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits