[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
Showing
- include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h 13 additions, 0 deletionsinclude/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
- lib/StaticAnalyzer/Checkers/MallocChecker.cpp 37 additions, 3 deletionslib/StaticAnalyzer/Checkers/MallocChecker.cpp
- lib/StaticAnalyzer/Core/BugReporter.cpp 3 additions, 1 deletionlib/StaticAnalyzer/Core/BugReporter.cpp
- test/Analysis/malloc.c 2 additions, 2 deletionstest/Analysis/malloc.c
Loading
Please register or sign in to comment