llvm-project/clang/test/CXX/dcl.dcl
Argyrios Kyrtzidis 7451d1cd00 [ARC] When casting from a pointer to an objective-c object with known ownership, if the
cast type has no ownership specified, implicitly "transfer" the ownership of the cast'ed type
to the cast type:

id x;
static_cast<NSString**>(&x); // Casting as (__strong NSString**).

This currently only works for C++ named casts, C casts to follow.

llvm-svn: 134273
2011-07-01 22:22:50 +00:00
..
basic.namespace Downgrade the error about re-opening an inline namespace as non-inline 2011-05-20 15:48:31 +00:00
dcl.enum Improve handling of enumerator values for C and C++, including: 2010-02-01 23:36:03 +00:00
dcl.link Switch CodeGen's "is this variable declaration a definition?" logic 2010-02-06 05:15:45 +00:00
dcl.spec [ARC] When casting from a pointer to an objective-c object with known ownership, if the 2011-07-01 22:22:50 +00:00