clang 20.0.0git
Classes | Functions
clang::ast_matchers::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)
 
 AST_MATCHER (FunctionDecl, isPredefinedUnsafeLibcFunc)
 
 AST_MATCHER (FunctionDecl, isUnsafeVaListPrintfFunc)
 
 AST_MATCHER (FunctionDecl, isUnsafeSprintfFunc)
 
 AST_MATCHER (FunctionDecl, isNormalPrintfFunc)
 
 AST_MATCHER_P (CallExpr, hasUnsafePrintfStringArg, clang::ast_matchers::internal::Matcher< Expr >, UnsafeStringArgMatcher)
 
 AST_MATCHER (CallExpr, hasUnsafeSnprintfBuffer)
 

Function Documentation

◆ AST_MATCHER() [1/5]

clang::ast_matchers::libc_func_matchers::AST_MATCHER ( CallExpr  ,
hasUnsafeSnprintfBuffer   
)

◆ AST_MATCHER() [2/5]

clang::ast_matchers::libc_func_matchers::AST_MATCHER ( FunctionDecl  ,
isNormalPrintfFunc   
)

◆ AST_MATCHER() [3/5]

clang::ast_matchers::libc_func_matchers::AST_MATCHER ( FunctionDecl  ,
isPredefinedUnsafeLibcFunc   
)

◆ AST_MATCHER() [4/5]

clang::ast_matchers::libc_func_matchers::AST_MATCHER ( FunctionDecl  ,
isUnsafeSprintfFunc   
)

◆ AST_MATCHER() [5/5]

clang::ast_matchers::libc_func_matchers::AST_MATCHER ( FunctionDecl  ,
isUnsafeVaListPrintfFunc   
)

◆ AST_MATCHER_P()

clang::ast_matchers::libc_func_matchers::AST_MATCHER_P ( CallExpr  ,
hasUnsafePrintfStringArg  ,
clang::ast_matchers::internal::Matcher< Expr ,
UnsafeStringArgMatcher   
)

◆ hasUnsafeFormatOrSArg()

static bool clang::ast_matchers::libc_func_matchers::hasUnsafeFormatOrSArg ( const CallExpr Call,
const Expr *&  UnsafeArg,
const unsigned  FmtArgIdx,
ASTContext Ctx,
bool  isKprintf = false 
)
static

◆ isNullTermPointer()

static bool clang::ast_matchers::libc_func_matchers::isNullTermPointer ( const Expr Ptr)
static