clang 24.0.0git
clang::ento::CLibraryFunctionInfo Class Reference

The properties of a function declaration that determine whether it is a C library function with a given name. More...

#include "clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h"

Public Member Functions

 CLibraryFunctionInfo (const FunctionDecl *FD)
bool isCLibraryFunction (StringRef Name)
 Implements CheckerContext::isCLibraryFunction(FD, Name).

Detailed Description

The properties of a function declaration that determine whether it is a C library function with a given name.

They are computed on first use, so matching a function against many names computes each at most once.

Definition at line 33 of file CallDescription.h.

Constructor & Destructor Documentation

◆ CLibraryFunctionInfo()

clang::ento::CLibraryFunctionInfo::CLibraryFunctionInfo ( const FunctionDecl * FD)
inlineexplicit

Definition at line 51 of file CallDescription.h.

Member Function Documentation

◆ isCLibraryFunction()

bool ento::CLibraryFunctionInfo::isCLibraryFunction ( StringRef Name)

Implements CheckerContext::isCLibraryFunction(FD, Name).

Definition at line 122 of file CallDescription.cpp.

Referenced by clang::ento::CheckerContext::isCLibraryFunction().


The documentation for this class was generated from the following files: