From: John McCall Date: Wed, 13 Jul 2011 23:15:32 +0000 (+0000) Subject: Document the behavior of property modifiers in ARC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f264950e51ef1e41ada0f6a3a25197cd141b571;p=clang Document the behavior of property modifiers in ARC. rdar://problem/9768338 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135104 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/AutomaticReferenceCounting.html b/docs/AutomaticReferenceCounting.html index 244f9e6a1f..5090fa2b79 100644 --- a/docs/AutomaticReferenceCounting.html +++ b/docs/AutomaticReferenceCounting.html @@ -686,6 +686,43 @@ type.

If an ownership qualifier appears anywhere else in a declarator, it applies to the type there.

+
+

Property declarations

+ +

A property of retainable object pointer type may have ownership. +If the property's type is ownership-qualified, then the property has +that ownership. If the property has one of the following modifiers, +then the property has the corresponding ownership. A property is +ill-formed if it has conflicting sources of ownership, or if it has +redundant ownership modifiers, or if it has __autoreleasing +ownership.

+ + + +

With the exception of weak, these modifiers are available +in non-ARC modes.

+ +

A property's specified ownership is preserved in its metadata, but +otherwise the meaning is purely conventional unless the property is +synthesized. If a property is synthesized, then the +associated instance variable is the +instance variable which is named, possibly implicitly, by the +@synthesize declaration. If the associated instance variable +already exists, then its ownership qualification must equal the +ownership of the property; otherwise, the instance variable is created +with that ownership qualification.

+ +
+