]> granicus.if.org Git - clang/commit
[analyzer] Add experimental option "leak-diagnostics-reference-allocation".
authorTed Kremenek <kremenek@apple.com>
Tue, 16 Apr 2013 21:44:22 +0000 (21:44 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 16 Apr 2013 21:44:22 +0000 (21:44 +0000)
commit08a838d16825159f7d0ae20d171aa5b3ebab3939
tree12867878be95afd92ca76e7c0162f71afe0e91ff
parenta8d8a4720dba28ee857964a4ca66ad9c66f98a3f
[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
lib/StaticAnalyzer/Checkers/AllocationDiagnostics.cpp [new file with mode: 0644]
lib/StaticAnalyzer/Checkers/AllocationDiagnostics.h [new file with mode: 0644]
lib/StaticAnalyzer/Checkers/CMakeLists.txt
lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
test/Analysis/analyzer-config.c
test/Analysis/analyzer-config.cpp