clang: clang::AnyCall Class Reference (original) (raw)
An instance of this class corresponds to a call. More...
#include "[clang/Analysis/AnyCall.h](AnyCall%5F8h%5Fsource.html)"
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 |
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.
Definition at line 26 of file AnyCall.h.
◆ param_const_iterator
◆ Kind
Enumerator | |
---|---|
Function | A function, function pointer, or a C++ method call. |
ObjCMethod | A call to an Objective-C method. |
Block | A call to an Objective-C block. |
Destructor | An implicit C++ destructor call (called implicitly or by operator 'delete') |
Constructor | An implicit or explicit C++ constructor call. |
InheritedConstructor | A C++ inherited constructor produced by a "using T::T" directive. |
Allocator | A C++ allocation function call (operator new), via C++ new-expression. |
Deallocator | A C++ deallocation function call (operator delete), via C++ delete-expression. |
Definition at line 28 of file AnyCall.h.
◆ AnyCall() [1/10]
clang::AnyCall::AnyCall ( const CallExpr * CE) | inline |
---|
◆ AnyCall() [2/10]
◆ AnyCall() [3/10]
clang::AnyCall::AnyCall ( const CXXNewExpr * NE) | inline |
---|
◆ AnyCall() [4/10]
◆ AnyCall() [5/10]
◆ AnyCall() [6/10]
◆ AnyCall() [7/10]
◆ AnyCall() [8/10]
◆ AnyCall() [9/10]
◆ AnyCall() [10/10]
◆ dump()
void clang::AnyCall::dump ( ) const | inline |
---|
◆ forDecl()
static std::optional< AnyCall > clang::AnyCall::forDecl ( const Decl * D) | inlinestatic |
---|
◆ forExpr()
static std::optional< AnyCall > clang::AnyCall::forExpr ( const Expr * E) | inlinestatic |
---|
If E
is a generic call (to ObjC method /function/block/etc), return a constructed [AnyCall](classclang%5F1%5F1AnyCall.html "An instance of this class corresponds to a call.")
object.
Return std::nullopt otherwise.
Definition at line 113 of file AnyCall.h.
References E.
Referenced by getSummary().
◆ getDecl()
const Decl * clang::AnyCall::getDecl ( ) const | inline |
---|
◆ getExpr()
const Expr * clang::AnyCall::getExpr ( ) const | inline |
---|
◆ getIdentifier()
Returns
Function identifier if it is a named declaration, nullptr
otherwise.
Definition at line 191 of file AnyCall.h.
References D.
◆ getKind()
Kind clang::AnyCall::getKind ( ) const | inline |
---|
◆ getReturnType()
◆ param_begin()
◆ param_empty()
bool clang::AnyCall::param_empty ( ) const | inline |
---|
◆ param_end()
◆ param_size()
size_t clang::AnyCall::param_size ( ) const | inline |
---|
◆ parameters()
The documentation for this class was generated from the following file:
- include/clang/Analysis/AnyCall.h