[cfe-dev] Self-init check should only run on NSObject subclasses

Jean-Daniel Dupas devlists at shadowlab.org
Tue Jan 25 03:09:45 PST 2011

Actually, the self-init check is performed on all classes. But NSProxy does not even implement -init. So, in proxy subclasses, it is not possible to call [super init].
I attach a patch to disable this check on classes that does not inherit NSObject.

-- Jean-Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: self-init.patch
Type: application/octet-stream
Size: 3502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110125/7c6d71fa/attachment.obj>

More information about the cfe-dev mailing list