[PATCH] D12726: [analyzer] A fix for symbolic element region index lifetime.
Artem Dergachev via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 9 07:42:04 PDT 2015
NoQ updated this revision to Diff 36946.
NoQ marked 4 inline comments as done.
NoQ added a comment.
Thanks for the review! Fixed all comments. I don't notice any significant performance hit with this patch (+/- 2% on the whole Android codebase runs).
I guess i won't break this into separate reviews, because less work =)
The loop through super-regions is necessary for supporting the test proposed by Jordan Rose, which is now added. Not sure what other tests are worth adding; together with specific tests on ReturnPtrRange, we're covering all three places that were patched; maybe i could move these tests to symbol-reaper.c as well, but i guess it's more worth it to test the actual analyzer output than artificially dumped internals(?) Not sure.
The change in Environment.cpp was removed because it's now handled automatically by markLive().
http://reviews.llvm.org/D12726
Files:
docs/analyzer/DebugChecks.rst
include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h
lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp
lib/StaticAnalyzer/Core/RegionStore.cpp
lib/StaticAnalyzer/Core/SymbolManager.cpp
test/Analysis/return-ptr-range.cpp
test/Analysis/symbol-reaper.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12726.36946.patch
Type: text/x-patch
Size: 8361 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151009/4df0bcd0/attachment-0001.bin>
More information about the cfe-commits
mailing list