r199255 - ObjectiveC. produce more expressive warning when

Jordan Rose jordan_rose at apple.com
Tue Jan 14 16:37:50 PST 2014


On Jan 14, 2014, at 16:33 , jahanian <fjahanian at apple.com> wrote:

> 
> On Jan 14, 2014, at 4:18 PM, Jordan Rose <jordan_rose at apple.com> wrote:
> 
>> The problem isn't that it's unimplemented, it's that it's undeclared. And @selector isn't really an operator. How about "no methods visible for selector %0" or "no methods declared for selector %0 in this translation unit”?
> 
> Warning is for when a method is declared but no implementation of it is seen in the translation unit. I am not sure what you mean
> by an "undeclared method”? Do you consider a method declared in an @interface but its implementation (or definition) is not
> in the current TU, an ‘undeclared method’?

Oops, sorry. I thought this was a much more useful warning than it actually is. >< I still think "using @selector on method" is the wrong phrasing, though. "no method with selector %0 implemented in this translation unit"?





More information about the cfe-commits mailing list