]> granicus.if.org Git - clang/commit
[analyzer] Extend the ObjCAutoreleaseWriteChecker to warn on captures as well
authorGeorge Karpenkov <ekarpenkov@apple.com>
Mon, 14 May 2018 21:39:54 +0000 (21:39 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Mon, 14 May 2018 21:39:54 +0000 (21:39 +0000)
commit6e7650dd0d17925d23c2a75da32c872f5dc40b42
treee009e26603be0ad33e97cba20f142ec1f379e47b
parent1ac7096910e64188a46c53f31f13321354609bbf
[analyzer] Extend the ObjCAutoreleaseWriteChecker to warn on captures as well

A common pattern is that the code in the block does not write into the
variable explicitly, but instead passes it to a helper function which
performs the write.

Differential Revision: https://reviews.llvm.org/D46772

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332300 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp
test/Analysis/autoreleasewritechecker_test.m