]> granicus.if.org Git - clang/commit
[analyzer] InnerPointerChecker: fix displayed checker name.
authorReka Kovacs <rekanikolett@gmail.com>
Mon, 6 Aug 2018 22:03:42 +0000 (22:03 +0000)
committerReka Kovacs <rekanikolett@gmail.com>
Mon, 6 Aug 2018 22:03:42 +0000 (22:03 +0000)
commit4f8b5a9f2983f4da6b0ef0724483991dfc52f448
tree36cdbab2b6999fbe846a2b65befc5a6190517455
parent89aa7f45a1f728144935289d4ce69d8522999de0
[analyzer] InnerPointerChecker: fix displayed checker name.

For InnerPointerChecker to function properly, both the checker itself
and parts of MallocChecker that handle relevant use-after-free problems
need to be turned on. So far, the latter part has been developed within
MallocChecker's NewDelete sub-checker, often causing warnings to appear
under that name. This patch defines a new CheckKind within MallocChecker
for the inner pointer checking functionality, so that the correct name
is displayed in warnings and in the ExplodedGraph.

Tested on clang-tidy.

Differential Review: https://reviews.llvm.org/D50211

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339067 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp
lib/StaticAnalyzer/Checkers/InterCheckerAPI.h
lib/StaticAnalyzer/Checkers/MallocChecker.cpp