clang 22.0.0git
libc_func_matchers Namespace Reference

Classes

struct  LibcFunNamePrefixSuffixParser

Functions

static bool isNullTermPointer (const Expr *Ptr)
static bool hasUnsafeFormatOrSArg (const CallExpr *Call, const Expr *&UnsafeArg, const unsigned FmtArgIdx, ASTContext &Ctx, bool isKprintf=false)
static bool isPredefinedUnsafeLibcFunc (const FunctionDecl &Node)
static bool isUnsafeVaListPrintfFunc (const FunctionDecl &Node)
static bool isUnsafeSprintfFunc (const FunctionDecl &Node)
static bool isNormalPrintfFunc (const FunctionDecl &Node)
static bool hasUnsafePrintfStringArg (const CallExpr &Node, ASTContext &Ctx, MatchResult &Result, llvm::StringRef Tag)
static bool hasUnsafeSnprintfBuffer (const CallExpr &Node, ASTContext &Ctx)

Function Documentation

◆ hasUnsafeFormatOrSArg()

◆ hasUnsafePrintfStringArg()

◆ hasUnsafeSnprintfBuffer()

◆ isNormalPrintfFunc()

◆ isNullTermPointer()

◆ isPredefinedUnsafeLibcFunc()

◆ isUnsafeSprintfFunc()

◆ isUnsafeVaListPrintfFunc()