clang 22.0.0git
CStringChecker.cpp File Reference

Go to the source code of this file.

Macros

#define REGISTER_CHECKER(NAME)

Functions

static std::optional< NonLocgetIndex (ProgramStateRef State, const ElementRegion *ER, CharKind CK)
static void printIdxWithOrdinalSuffix (llvm::raw_ostream &Os, unsigned Idx)

Macro Definition Documentation

◆ REGISTER_CHECKER

#define REGISTER_CHECKER ( NAME)
Value:
void ento::registerCString##NAME(CheckerManager &Mgr) { \
Mgr.getChecker<CStringChecker>()->NAME.enable(Mgr); \
} \
\
bool ento::shouldRegisterCString##NAME(const CheckerManager &) { \
return true; \
}
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 2926 of file CStringChecker.cpp.

Function Documentation

◆ getIndex()

◆ printIdxWithOrdinalSuffix()

void printIdxWithOrdinalSuffix ( llvm::raw_ostream & Os,
unsigned Idx )
static

Definition at line 425 of file CStringChecker.cpp.