From: Fariborz Jahanian Date: Wed, 6 Jul 2011 22:56:44 +0000 (+0000) Subject: Update document for objc_arc_weak_unavailable attribute X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a236c0e47aec75b5f838552c4f04b0c249f5ff61;p=clang Update document for objc_arc_weak_unavailable attribute on class declarations. Documentation for // rdar://9693477 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134558 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/AutomaticReferenceCounting.html b/docs/AutomaticReferenceCounting.html index 280462481c..11bd020b75 100644 --- a/docs/AutomaticReferenceCounting.html +++ b/docs/AutomaticReferenceCounting.html @@ -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. +value. If class is not compatible with weak references, +objc_arc_weak_unavailable +attribute must be specified on class declaration to disallow weak +references to their objects.
  • For __unsafe_unretained objects, the new pointee is stored into the lvalue using primitive semantics.
  • For __autoreleasing objects, the new pointee is retained,