]> granicus.if.org Git - clang/commit
Allow the results of cf_returns_not_retained function
authorJohn McCall <rjmccall@apple.com>
Sat, 1 Oct 2011 01:01:08 +0000 (01:01 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 1 Oct 2011 01:01:08 +0000 (01:01 +0000)
commit2cf031d33ce6801dc11183a3cb48168f53fe06c4
tree1ff960ecc1e2d43bfdb2a679b7cf58ff6df0059e
parent7df2ff45f101c87398329d0ea23c1377328dca40
Allow the results of cf_returns_not_retained function
calls, or calls to audited functions without an explicit
return attribute, to be casted without a bridge cast.
Tie this mechanism in with the existing exceptions to
the cast restrictions.  State those restrictions more
correctly and generalize.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140912 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaExprObjC.cpp
test/CodeGenObjC/arc-unbridged-cast.m
test/SemaObjC/arc-cf.m [new file with mode: 0644]
test/SemaObjC/arc-unbridged-cast.m