mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-29 16:29:00 -04:00

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 llvm-svn: 339067
28 lines
1006 B
C++
28 lines
1006 B
C++
//==--- InterCheckerAPI.h ---------------------------------------*- C++ -*-==//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
// This file allows introduction of checker dependencies. It contains APIs for
|
|
// inter-checker communications.
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_INTERCHECKERAPI_H
|
|
#define LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_INTERCHECKERAPI_H
|
|
namespace clang {
|
|
class CheckerManager;
|
|
|
|
namespace ento {
|
|
|
|
/// Register the checker which evaluates CString API calls.
|
|
void registerCStringCheckerBasic(CheckerManager &Mgr);
|
|
|
|
/// Register the part of MallocChecker connected to InnerPointerChecker.
|
|
void registerInnerPointerCheckerAux(CheckerManager &Mgr);
|
|
|
|
}}
|
|
#endif /* INTERCHECKERAPI_H_ */
|