]> granicus.if.org Git - clang/commit
[ARC] When casting from a pointer to an objective-c object with known ownership,...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 1 Jul 2011 22:22:59 +0000 (22:22 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 1 Jul 2011 22:22:59 +0000 (22:22 +0000)
commit0a85183be6930571f3af8e5a976d24c3f95e5b25
tree83072ae87cdf8bb2a24b8f4ab6861f502d05d711
parent707f101d3302b76ee01e8ca29b1a61f081137b9f
[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;
(NSString**)&x; // Casting as (__strong NSString**).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134275 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
include/clang/Sema/Sema.h
lib/Parse/ParseExpr.cpp
lib/Parse/ParseExprCXX.cpp
lib/Sema/SemaExpr.cpp
test/ARCMT/checking.m
test/SemaObjC/arc-type-conversion.m
test/SemaObjCXX/arc-type-conversion.mm