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)
commit4a67508685abee7b8d3ebbca6b1144d2c7ead211
treec4960b19093dfdbdd8d2dc4091f6e1af20d32314
parent8baa61d85d3faa05882e5a6b45bcc11c78f60d40
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

llvm-svn: 165133
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaExpr.cpp
clang/test/FixIt/fixit-missing-self-in-block.m [new file with mode: 0644]
clang/test/SemaObjC/warn-implicit-self-in-block.m [new file with mode: 0644]
clang/test/SemaObjC/warn-retain-cycle.m