clang 22.0.0git
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 50 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 146 of file SmartPtrModeling.cpp.

◆ isStdSmartPtr() [1/2]

◆ 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 124 of file SmartPtrModeling.cpp.

References clang::Call, and isStdSmartPtr().