diff options
| author | John McCall <rjmccall@apple.com> | 2012-03-30 05:23:48 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2012-03-30 05:23:48 +0000 |
| commit | 67cd5e094e431a0bed9e5d7dbf4e9c1e43a0039c (patch) | |
| tree | 0e501182cbf5de4bd3a583f832a964473424f7b6 /clang/docs/AutomaticReferenceCounting.html | |
| parent | 678a53c3509c3734e0a822ab4b7d73e853b5c96a (diff) | |
| download | bcm5719-llvm-67cd5e094e431a0bed9e5d7dbf4e9c1e43a0039c.tar.gz bcm5719-llvm-67cd5e094e431a0bed9e5d7dbf4e9c1e43a0039c.zip | |
Forbid the block and lambda copy-capture of __autoreleasing variables
in ARC, under the usual reasoning limiting the use of __autoreleasing.
llvm-svn: 153725
Diffstat (limited to 'clang/docs/AutomaticReferenceCounting.html')
| -rw-r--r-- | clang/docs/AutomaticReferenceCounting.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/docs/AutomaticReferenceCounting.html b/clang/docs/AutomaticReferenceCounting.html index ff65f3be480..1416df58e45 100644 --- a/clang/docs/AutomaticReferenceCounting.html +++ b/clang/docs/AutomaticReferenceCounting.html @@ -1006,7 +1006,9 @@ operation has a weak-unavailable type.</p> <h1>Storage duration of <tt>__autoreleasing</tt> objects</h1> <p>A program is ill-formed if it declares an <tt>__autoreleasing</tt> -object of non-automatic storage duration.</p> +object of non-automatic storage duration. A program is ill-formed +if it captures an <tt>__autoreleasing</tt> object in a block or, +unless by reference, in a C++11 lambda.</p> <div class="rationale"><p>Rationale: autorelease pools are tied to the current thread and scope by their nature. While it is possible to |

