[cfe-commits] [patch] Retain/release checking for ObjCStringLiterals
devlists at shadowlab.org
Mon Mar 12 01:44:18 PDT 2012
Le 11 mars 2012 à 22:37, Jordan Rose a écrit :
> After I complained about it a few days ago, I figured I'd take a stab at fixing this:
> [@"abc" release]; // should warn!
I'm not sure I agree it should warn. It is a well known fact that retain/release are noop on constant string literal and it is used in many place.
IHMO, the static analyzer should continue to ignore String literals as it actually does.
More information about the cfe-commits