]> granicus.if.org Git - clang/commit
objective-C arc: Warn under arc about a use of an ivar inside a block
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 3 Oct 2012 17:55:29 +0000 (17:55 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 3 Oct 2012 17:55:29 +0000 (17:55 +0000)
commit3f001ff471aec590a65a383a25367a4e1c82f5a3
tree7871f14177a640a2379870c0683a27f351711405
parentf8d9bd546811a56ebb0b581ce4cc6043b51659a1
objective-C arc: Warn under arc about a use of an ivar inside a block
that doesn't have a 'self' as this implicitly captures 'self' and could
create retain cycles. Provide fixit. // rdar://11194874

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165133 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/FixIt/fixit-missing-self-in-block.m [new file with mode: 0644]
test/SemaObjC/warn-implicit-self-in-block.m [new file with mode: 0644]
test/SemaObjC/warn-retain-cycle.m