From: Fariborz Jahanian Date: Wed, 6 Jul 2011 22:47:46 +0000 (+0000) Subject: Update document on use of ns_returns_not_retained X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acd4aaf69e6c29815b10c6b5e5483df38b3c5275;p=clang Update document on use of ns_returns_not_retained attribute on property. Document for // rdar://9636091. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134556 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/AutomaticReferenceCounting.html b/docs/AutomaticReferenceCounting.html index 88704d939a..280462481c 100644 --- a/docs/AutomaticReferenceCounting.html +++ b/docs/AutomaticReferenceCounting.html @@ -1141,9 +1141,15 @@ annotating the method with either of the ns_returns_autoreleased or ns_returns_not_retained attributes.

+

Properties also follow same naming rules as methods. This means that +those in the alloc, copy, mutableCopy, +and new families provide access to +retained objects. +This can be overridden by annotating the property with +ns_returns_not_retained attribute.

+

Semantics of init

-

Methods in the init family implicitly consume their self parameter and return a