[cfe-commits] [patch] Retain/release checking for ObjCStringLiterals

Jean-Daniel Dupas 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.

-- Jean-Daniel








More information about the cfe-commits mailing list