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

Ted Kremenek kremenek at apple.com
Tue Oct 28 21:32:24 PDT 2008

On Oct 24, 2008, at 8:17 AM, Nikita Zhuk wrote:

> 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.

Hi Nikita,

Other than adding a "bug category" for these warnings, I basically  
applied the patch as is:


We will continue to evolve the -dealloc checks over time, and this is  
a great addition!


More information about the cfe-dev mailing list