[cfe-dev] [PATCH] Check missing or extra releases of ivars in dealloc

Nikita Zhuk nikita at zhuk.fi
Fri Oct 24 08:17:27 PDT 2008


Hi,

The attached patch adds additional checks to -warn-objc-missing- 
dealloc. It checks that all ivars which are used in implementation of  
synthesized properties are either
a) released in dealloc if the property has retain" or "copy" attribute  
OR
b) not released in dealloc if the property has "assign" attribute

If it looks useful to you, please review & include it into clang.




-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang.patch
Type: application/octet-stream
Size: 3113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20081024/0c31e807/attachment.obj>
-------------- next part --------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ivars-in-dealloc.m
Type: application/octet-stream
Size: 862 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20081024/0c31e807/attachment-0001.obj>
-------------- next part --------------



More information about the cfe-dev mailing list