clang 23.0.0git
PthreadLockChecker.cpp File Reference

Go to the source code of this file.

Macros

#define REGISTER_CHECKER(name)

Functions

static bool isLockRelevant (const MemRegion *R, const PathSensitiveBugReport &BR)
static const NoteTagcreateMutexNote (CheckerContext &C, const MemRegion *R, StringRef MsgForNamed, StringRef MsgForUnnamed)

Variables

constexpr llvm::StringRef LOCK_CHECKER_CATEGORY = "Lock checker"

Macro Definition Documentation

◆ REGISTER_CHECKER

#define REGISTER_CHECKER ( name)
Value:
void ento::register##name(CheckerManager &mgr) { \
PthreadLockChecker *checker = mgr.getChecker<PthreadLockChecker>(); \
checker->ChecksEnabled[PthreadLockChecker::CK_##name] = true; \
checker->CheckNames[PthreadLockChecker::CK_##name] = \
} \
\
bool ento::shouldRegister##name(const CheckerManager &mgr) { return true; }
CheckerNameRef getCurrentCheckerName() const
CHECKER * getChecker(AT &&...Args)
If the the singleton instance of a checker class is not yet constructed, then construct it (with the ...

Definition at line 775 of file PthreadLockChecker.cpp.

Function Documentation

◆ createMutexNote()

const NoteTag * createMutexNote ( CheckerContext & C,
const MemRegion * R,
StringRef MsgForNamed,
StringRef MsgForUnnamed )
static

Definition at line 38 of file PthreadLockChecker.cpp.

References clang::C, and clang::ento::OS.

◆ isLockRelevant()

Variable Documentation

◆ LOCK_CHECKER_CATEGORY

llvm::StringRef LOCK_CHECKER_CATEGORY = "Lock checker"
constexpr

Definition at line 30 of file PthreadLockChecker.cpp.

Referenced by isLockRelevant().