[cfe-dev] NSAutoreleasePool checker
David Chisnall
csdavec at swan.ac.uk
Fri May 27 03:14:04 PDT 2011
Hi Everyone,
Currently the NSAutoreleasePool checker in the static analyser is only enabled in GC mode. Does anyone object if I enable it unconditionally? Sending -drain instead of -release to autorelease pools works in both GC and non-GC mode, while sending -release is a no-op in GC mode, so it's good style to use -drain always (recent Apple examples use -drain even in non-GC mode).
David
More information about the cfe-dev
mailing list