summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/warn-implicit-self-in-block.m
Commit message (Collapse)AuthorAgeFilesLines
* [Sema][ObjC] Don't warn about an implicitly retained self if theAkira Hatanaka2019-04-171-18/+0
| | | | | | | | | | | | | | | | | retaining block and all of the enclosing blocks are non-escaping. If the block implicitly retaining self doesn't escape, there is no risk of creating retain cycles, so clang shouldn't diagnose it and force users to add self-> to silence the diagnostic. Also, fix a bug where clang was failing to diagnose an implicitly retained self inside a c++ lambda nested inside a block. rdar://problem/25059955 Differential Revision: https://reviews.llvm.org/D60736 llvm-svn: 358624
* Update test case.Ted Kremenek2012-11-021-1/+1
| | | | llvm-svn: 167301
* use ';' instead of '-' in the note part of my last patch.Fariborz Jahanian2012-10-031-1/+1
| | | | llvm-svn: 165177
* Fix a typo in my last patch reported by Erik Schwiebert.Fariborz Jahanian2012-10-031-1/+1
| | | | llvm-svn: 165142
* objective-C arc: Warn under arc about a use of an ivar inside a blockFariborz Jahanian2012-10-031-0/+18
that doesn't have a 'self' as this implicitly captures 'self' and could create retain cycles. Provide fixit. // rdar://11194874 llvm-svn: 165133
OpenPOWER on IntegriCloud