clang 20.0.0git
Functions
clang::ento::smartptr Namespace Reference

Functions

bool isStdSmartPtrCall (const CallEvent &Call)
 Returns true if the event call is on smart pointer.
 
bool isStdSmartPtr (const CXXRecordDecl *RD)
 
bool isStdSmartPtr (const Expr *E)
 
bool isNullSmartPtr (const ProgramStateRef State, const MemRegion *ThisRegion)
 Returns whether the smart pointer is null or not.
 
const BugTypegetNullDereferenceBugType ()
 

Function Documentation

◆ getNullDereferenceBugType()

const BugType * clang::ento::smartptr::getNullDereferenceBugType ( )

Definition at line 54 of file SmartPtrChecker.cpp.

◆ isNullSmartPtr()

bool clang::ento::smartptr::isNullSmartPtr ( const ProgramStateRef  State,
const MemRegion ThisRegion 
)

Returns whether the smart pointer is null or not.

Definition at line 149 of file SmartPtrModeling.cpp.

◆ isStdSmartPtr() [1/2]

bool clang::ento::smartptr::isStdSmartPtr ( const CXXRecordDecl RD)

◆ isStdSmartPtr() [2/2]

bool clang::ento::smartptr::isStdSmartPtr ( const Expr E)

◆ isStdSmartPtrCall()

bool clang::ento::smartptr::isStdSmartPtrCall ( const CallEvent Call)

Returns true if the event call is on smart pointer.

Definition at line 127 of file SmartPtrModeling.cpp.

References clang::Call, and isStdSmartPtr().