Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
clang 20.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::register##name(CheckerManager &mgr) { \
CStringChecker *checker = mgr.getChecker<CStringChecker>(); \
checker->Filter.Check##name = true; \
checker->Filter.CheckName##name = mgr.getCurrentCheckerName(); \
} \
\
bool ento::shouldRegister##name(const CheckerManager &mgr) { return true; }
CheckerNameRef getCurrentCheckerName() const

Definition at line 2849 of file CStringChecker.cpp.

Function Documentation

◆ getIndex()

◆ printIdxWithOrdinalSuffix()

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

Definition at line 433 of file CStringChecker.cpp.