]> granicus.if.org Git - clang/commit
MacOSKeychainAPIChecker:
authorAnna Zaks <ganna@apple.com>
Fri, 12 Aug 2011 21:56:43 +0000 (21:56 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 12 Aug 2011 21:56:43 +0000 (21:56 +0000)
commit703ffb11eff7bc6e8532bdbe54045e19a7732253
tree5ec309382c93b2b1723d198239eeb743c81cb3ab
parent096aef9597b263b4cd6a0feaacf9e7214fa9c75a
MacOSKeychainAPIChecker:
Report errors earlier: on checkDeadSymbols() and clear the state after the symbol we are tracking goes out of scope.

Also, perform lazy error checking. Instead of forcing the paths to be split depending one the return value of the allocator, make the return symbol depend on the allocated data symbol, which prolongs its life span to the time when the allocated data symbol becomes dead.

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