]> granicus.if.org Git - clang/commit
[analyzer] Add support for reference counting of parameters on the callee side
authorDevin Coughlin <dcoughlin@apple.com>
Thu, 17 Aug 2017 04:19:07 +0000 (04:19 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Thu, 17 Aug 2017 04:19:07 +0000 (04:19 +0000)
commit0b20214abb4769f37176232e64996457714d9aa7
tree3c321f726815bd7df8c5d3ec3907f23b821e0de6
parent1cfec5f606b4c8c132ce790cf0661a0d5b3f6b70
[analyzer] Add support for reference counting of parameters on the callee side

This commit adds the functionality of performing reference counting on the
callee side for Integer Set Library (ISL) to Clang Static Analyzer's
RetainCountChecker.

Reference counting on the callee side can be extensively used to perform
debugging within a function (For example: Finding leaks on error paths).

Patch by Malhar Thakkar!

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311063 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
test/Analysis/retain-release-inline.m