[analyzer] Add experimental option "leak-diagnostics-reference-allocation".
This is an opt-in tweak for leak diagnostics to reference the allocation site if the diagnostic consumer only wants a pithy amount of information, and not the entire path. This is a strawman enhancement that I expect to see some experimentation with over the next week, and can go away if we don't want it. Currently it is only used by RetainCountChecker, but could be used by MallocChecker if and when we decide this should stay in. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179634 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/StaticAnalyzer/Checkers/AllocationDiagnostics.cpp 24 additions, 0 deletionslib/StaticAnalyzer/Checkers/AllocationDiagnostics.cpp
- lib/StaticAnalyzer/Checkers/AllocationDiagnostics.h 31 additions, 0 deletionslib/StaticAnalyzer/Checkers/AllocationDiagnostics.h
- lib/StaticAnalyzer/Checkers/CMakeLists.txt 1 addition, 0 deletionslib/StaticAnalyzer/Checkers/CMakeLists.txt
- lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp 25 additions, 10 deletionslib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
- test/Analysis/analyzer-config.c 2 additions, 1 deletiontest/Analysis/analyzer-config.c
- test/Analysis/analyzer-config.cpp 2 additions, 1 deletiontest/Analysis/analyzer-config.cpp
Loading
Please register or sign in to comment