[cfe-dev] ARC and refcount semantics attributes

Chris Lattner clattner at apple.com
Mon Jul 18 09:23:36 PDT 2011


On Jul 18, 2011, at 9:18 AM, George King wrote:

> Hi list, I just discovered these attributes on a page about the static analyzer:
> 
> __attribute((ns_return_retained))
> __attribute((ns_consumed))


> 
> I am curious whether the current implementation of ARC respects these attributes, or if there are plans to support them.

Yep, they are.  More information about ARC is here:
http://clang.llvm.org/docs/AutomaticReferenceCounting.html

>  It seems important that it would for cases where autorelease pools are not practical.

What do you mean? 

-Chris



More information about the cfe-dev mailing list