clang 22.0.0git
ErrnoChecker.cpp File Reference

Go to the source code of this file.

Functions

static ProgramStateRef setErrnoStateIrrelevant (ProgramStateRef State)
static bool isInCondition (const Stmt *S, CheckerContext &C)
 Check if a statement (expression) or an ancestor of it is in a condition part of a (conditional, loop, switch) statement.

Function Documentation

◆ isInCondition()

bool isInCondition ( const Stmt * S,
CheckerContext & C )
static

Check if a statement (expression) or an ancestor of it is in a condition part of a (conditional, loop, switch) statement.

Definition at line 70 of file ErrnoChecker.cpp.

References clang::C, clang::cast(), clang::DynTypedNodeList::empty(), clang::ParentMapContext::getParents(), and clang::isa().

◆ setErrnoStateIrrelevant()

ProgramStateRef setErrnoStateIrrelevant ( ProgramStateRef State)
static