clang 22.0.0git
UnixAPIChecker.cpp File Reference

Go to the source code of this file.

Enumerations

enum class  OpenVariant { Open , OpenAt }

Functions

static std::optional< intgetCreateFlagValue (const ASTContext &Ctx, const Preprocessor &PP)
static bool IsZeroByteAllocation (ProgramStateRef state, const SVal argVal, ProgramStateRef *trueState, ProgramStateRef *falseState)

Enumeration Type Documentation

◆ OpenVariant

enum class OpenVariant
strong
Enumerator
Open 

The standard open() call: int open(const char *path, int oflag, ...);.

OpenAt 

The variant taking a directory file descriptor and a relative path: int openat(int fd, const char *path, int oflag, ...);.

Definition at line 32 of file UnixAPIChecker.cpp.

Function Documentation

◆ getCreateFlagValue()

std::optional< int > getCreateFlagValue ( const ASTContext & Ctx,
const Preprocessor & PP )
static

◆ IsZeroByteAllocation()

bool IsZeroByteAllocation ( ProgramStateRef state,
const SVal argVal,
ProgramStateRef * trueState,
ProgramStateRef * falseState )
static

Definition at line 461 of file UnixAPIChecker.cpp.

References clang::ento::SVal::castAs().