]> granicus.if.org Git - clang/commitdiff
Update document for objc_arc_weak_unavailable attribute
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 6 Jul 2011 22:56:44 +0000 (22:56 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 6 Jul 2011 22:56:44 +0000 (22:56 +0000)
on class declarations. Documentation for // rdar://9693477

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134558 91177308-0d34-0410-b5e6-96231b3b80d8

docs/AutomaticReferenceCounting.html

index 280462481cffd7dcf51e4dcbb1a02d2d97ecb885..11bd020b751014d9c3a67a7c7645645a16f21a50 100644 (file)
@@ -728,7 +728,10 @@ new pointee, unless that object is currently undergoing deallocation,
 in which case it the lvalue is updated to a null pointer.  This must
 execute atomically with respect to other assignments to the object, to
 reads from the object, and to the final release of the new pointed-to
-value.</li>
+value. If class is not compatible with weak references, 
+<tt>objc_arc_weak_unavailable</tt>
+attribute must be specified on class declaration to disallow weak 
+references to their objects.</li>
 <li>For <tt>__unsafe_unretained</tt> objects, the new pointee is
 stored into the lvalue using primitive semantics.</li>
 <li>For <tt>__autoreleasing</tt> objects, the new pointee is retained,