summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorAnton Yartsev <anton.yartsev@gmail.com>2013-04-04 23:46:29 +0000
committerAnton Yartsev <anton.yartsev@gmail.com>2013-04-04 23:46:29 +0000
commite3377fbca2d599f37fd0f77c9379d1609c53a14e (patch)
tree84152dd50060b5f63222793735831f5019b31ebf /clang/lib/Basic
parent9a13c3e6833ddbff69fcbf90a19c040cf01e7974 (diff)
downloadbcm5719-llvm-e3377fbca2d599f37fd0f77c9379d1609c53a14e.tar.gz
bcm5719-llvm-e3377fbca2d599f37fd0f77c9379d1609c53a14e.zip
[analyzer] Reduced the unwanted correlations between checkers living inside MallocChecker.cpp
This fixes an issue pointed to by Jordan: if unix.Malloc and unix.MismatchedDeallocator are both on, then we end up still tracking leaks of memory allocated by new. Moved the guards right before emitting the bug reports to unify and simplify the logic of handling of multiple checkers. Now all the checkers perform their checks regardless of if they were enabled, or not, and it is decided just before the emitting of the report, if it should be emitted. (idea from Anna). Additional changes: improved test coverage for checker correlations; refactoring: BadDealloc -> MismatchedDealloc llvm-svn: 178814
Diffstat (limited to 'clang/lib/Basic')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud