|
clang 24.0.0git
|
An instance of this class corresponds to a call. More...
#include "clang/Analysis/AnyCall.h"
Public Types | |
| enum | Kind { Function , ObjCMethod , Block , Destructor , Constructor , InheritedConstructor , Allocator , Deallocator } |
| using | param_const_iterator = ArrayRef<ParmVarDecl *>::const_iterator |
Public Member Functions | |
| AnyCall (const CallExpr *CE) | |
| AnyCall (const ObjCMessageExpr *ME) | |
| AnyCall (const CXXNewExpr *NE) | |
| AnyCall (const CXXDeleteExpr *NE) | |
| AnyCall (const CXXConstructExpr *NE) | |
| AnyCall (const CXXInheritedCtorInitExpr *CIE) | |
| AnyCall (const CXXDestructorDecl *D) | |
| AnyCall (const CXXConstructorDecl *D) | |
| AnyCall (const ObjCMethodDecl *D) | |
| AnyCall (const FunctionDecl *D) | |
| ArrayRef< ParmVarDecl * > | parameters () const |
| param_const_iterator | param_begin () const |
| param_const_iterator | param_end () const |
| size_t | param_size () const |
| bool | param_empty () const |
| llvm::SmallVector< const Expr *, 4 > | arguments () const |
| size_t | arg_size () const |
| bool | arg_empty () const |
| const Expr * | getArg (unsigned I) const |
| QualType | getReturnType (ASTContext &Ctx) const |
| const IdentifierInfo * | getIdentifier () const |
| const Decl * | getDecl () const |
| const Expr * | getExpr () const |
| Kind | getKind () const |
| void | dump () const |
Static Public Member Functions | |
| static std::optional< AnyCall > | forExpr (const Expr *E) |
If E is a generic call (to ObjC method /function/block/etc), return a constructed AnyCall object. | |
| static std::optional< AnyCall > | forDecl (const Decl *D) |
If D is a callable (Objective-C method or a function), return a constructed AnyCall object. | |
An instance of this class corresponds to a call.
It might be a syntactically-concrete call, done as a part of evaluating an expression, or it may be an abstract callee with no associated expression.
| using clang::AnyCall::param_const_iterator = ArrayRef<ParmVarDecl *>::const_iterator |
| enum clang::AnyCall::Kind |
|
inline |
Definition at line 71 of file AnyCall.h.
References Block, Function, clang::CallExpr::getCallee(), clang::CallExpr::getCalleeDecl(), getType(), and clang::isa().
|
inline |
Definition at line 80 of file AnyCall.h.
References ObjCMethod.
|
inline |
|
inline |
Definition at line 86 of file AnyCall.h.
References Deallocator.
|
inline |
Definition at line 89 of file AnyCall.h.
References Constructor.
|
inline |
Definition at line 92 of file AnyCall.h.
References InheritedConstructor.
|
inline |
Definition at line 95 of file AnyCall.h.
References Destructor, and clang::nullptr.
|
inline |
Definition at line 97 of file AnyCall.h.
References Constructor, and clang::nullptr.
|
inline |
Definition at line 99 of file AnyCall.h.
References clang::nullptr, and ObjCMethod.
|
inline |
Definition at line 101 of file AnyCall.h.
References Constructor, Destructor, Function, clang::isa(), and clang::nullptr.
|
inline |
Definition at line 215 of file AnyCall.h.
References arguments().
|
inline |
Definition at line 214 of file AnyCall.h.
References arguments().
|
inline |
Definition at line 170 of file AnyCall.h.
References Allocator, Block, clang::cast(), Constructor, Deallocator, Destructor, Function, InheritedConstructor, and ObjCMethod.
Referenced by arg_empty(), arg_size(), and getArg().
If D is a callable (Objective-C method or a function), return a constructed AnyCall object.
Return std::nullopt otherwise.
Definition at line 135 of file AnyCall.h.
References AnyCall().
Referenced by clang::ento::retaincountchecker::RetainCountChecker::checkBeginFunction(), and isInMIGCall().
If E is a generic call (to ObjC method /function/block/etc), return a constructed AnyCall object.
Return std::nullopt otherwise.
Definition at line 114 of file AnyCall.h.
References AnyCall().
Referenced by clang ::lifetimes::FunctionCallInfo::FunctionCallInfo(), and getSummary().
Definition at line 216 of file AnyCall.h.
References arguments().
|
inline |
|
inline |
Definition at line 218 of file AnyCall.h.
References Allocator, Block, clang::cast(), Constructor, Deallocator, Destructor, Function, InheritedConstructor, and ObjCMethod.
|
inline |
Definition at line 161 of file AnyCall.h.
References parameters().
|
inline |
Definition at line 164 of file AnyCall.h.
References parameters().
|
inline |
Definition at line 162 of file AnyCall.h.
References parameters().
|
inline |
Definition at line 163 of file AnyCall.h.
References parameters().
|
inline |
Definition at line 145 of file AnyCall.h.
Referenced by param_begin(), param_empty(), param_end(), and param_size().