clang 20.0.0git
|
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 BugType * | getNullDereferenceBugType () |
const BugType * clang::ento::smartptr::getNullDereferenceBugType | ( | ) |
Definition at line 54 of file SmartPtrChecker.cpp.
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.
bool clang::ento::smartptr::isStdSmartPtr | ( | const CXXRecordDecl * | RD | ) |
Definition at line 134 of file SmartPtrModeling.cpp.
References clang::Decl::getDeclContext(), clang::NamedDecl::getDeclName(), clang::NamedDecl::getName(), clang::DeclarationName::isIdentifier(), and clang::DeclContext::isStdNamespace().
Referenced by isPotentiallyComparisionOpCall(), isStdSmartPtr(), and isStdSmartPtrCall().
Definition at line 145 of file SmartPtrModeling.cpp.
References E, clang::Type::getAsCXXRecordDecl(), clang::Expr::getType(), and isStdSmartPtr().
Returns true if the event call is on smart pointer.
Definition at line 127 of file SmartPtrModeling.cpp.
References clang::Call, and isStdSmartPtr().