[cfe-dev] objc method lookup in super class implementation

Jean-Daniel Dupas devlists at shadowlab.org
Sun Mar 8 04:09:27 PDT 2009


Hello,

When clang lookup a method, it searches in the class implementation if  
it is in scope,  but it does not try to search in super class  
implementation that may be in the scope too.

The result is that it emits "may not responds to selector" warning  
where it is obvious that the object will, as its superclass implement  
it.

Here is a patch to lookup in superclasses implementations (if in  
scope), and a test case.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: lookup-superimpl.patch
Type: application/octet-stream
Size: 1963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090308/afdb7aa5/attachment.obj>
-------------- next part --------------



More information about the cfe-dev mailing list