]> granicus.if.org Git - clang/commit
[analyzer] Use isLiveRegion to determine when SymbolRegionValue is dead.
authorAnna Zaks <ganna@apple.com>
Fri, 15 Mar 2013 23:34:29 +0000 (23:34 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 15 Mar 2013 23:34:29 +0000 (23:34 +0000)
commit74c0d6988462c2cb882e7a8b8050fe119a5af56f
treea376007af6426764510f8d9250dc3611bc22baa4
parentf510f5cd57fa9b7ea6f6e103c65c0df95a55d986
[analyzer] Use isLiveRegion to determine when SymbolRegionValue is dead.

Fixes a FIXME, improves dead symbol collection, suppresses a false positive,
which resulted from reusing the same symbol twice for simulation of 2 calls to the same function.

Fixing this lead to 2 possible false negatives in CString checker. Since the checker is still alpha and
the solution will not require revert of this commit, move the tests to a FIXME section.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177206 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/SymbolManager.cpp
test/Analysis/malloc.c
test/Analysis/string.c