]> granicus.if.org Git - clang/commit
[analyzer] Malloc: unique leak reports by allocation site.
authorAnna Zaks <ganna@apple.com>
Thu, 23 Feb 2012 21:38:21 +0000 (21:38 +0000)
committerAnna Zaks <ganna@apple.com>
Thu, 23 Feb 2012 21:38:21 +0000 (21:38 +0000)
commitca8e36eb637e232475ef31c3f22d5da907390917
tree1900fdf4f44573541cf80af124aef41c83cf8d27
parent55882446ce7b95f4b3993f1afe591cf0d06e4628
[analyzer] Malloc: unique leak reports by allocation site.

When we find two leak reports with the same allocation site, report only
one of them.

Provide a helper method to BugReporter to facilitate this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151287 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
lib/StaticAnalyzer/Checkers/MallocChecker.cpp
lib/StaticAnalyzer/Core/BugReporter.cpp
test/Analysis/malloc.c