<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">OK,<div><br></div><div>I will have a look at this, and I will also handle the class method case.</div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><br></div><div><div>Le 8 mars 09 à 17:08, steve naroff a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Jean-Daniel,<br><br>This patch looks good, however it doesn't handle 'super'.<br><br>snaroff% ../../../../Debug/bin/clang method-lookup-4.m<br>method-lookup-4.m:30:3: warning: method '-myMethod' not found (return type defaults to 'id')<br>  [super myMethod];<br>  ^~~~~~~~~~~~~~~~<br>1 diagnostic generated.<br><br>Since the patch relates to looking in super classes, it would be nice if it handled messages to 'super' as well.<br><br>Thanks,<br><br>snaroff<br><br>On Mar 8, 2009, at 7:09 AM, Jean-Daniel Dupas wrote:<br><br><blockquote type="cite">Hello,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">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.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">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.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Here is a patch to lookup in superclasses implementations (if in scope), and a test case.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><lookup-superimpl.patch><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">cfe-dev mailing list<br></blockquote><blockquote type="cite"><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br></blockquote><blockquote type="cite"><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></blockquote><br><br></div></blockquote></div><br></div></body></html>