clang
10.0.0git
|
Represents the memory allocation call in a C++ new-expression. More...
#include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h"
Public Member Functions | |
virtual const CXXNewExpr * | getOriginExpr () const |
const FunctionDecl * | getDecl () const override |
unsigned | getNumImplicitArgs () const |
Number of non-placement arguments to the call. More... | |
unsigned | getNumArgs () const override |
const Expr * | getArgExpr (unsigned Index) const override |
const Expr * | getPlacementArgExpr (unsigned Index) const |
Number of placement arguments to the operator new() call. More... | |
Kind | getKind () const override |
Static Public Member Functions | |
static bool | classof (const CallEvent *CE) |
Protected Member Functions | |
CXXAllocatorCall (const CXXNewExpr *E, ProgramStateRef St, const LocationContext *LCtx) | |
CXXAllocatorCall (const CXXAllocatorCall &Other)=default | |
void | cloneTo (void *Dest) const override |
Friends | |
class | CallEventManager |
Represents the memory allocation call in a C++ new-expression.
This is a call to "operator new".
Definition at line 872 of file CallEvent.h.
|
inlineprotected |
Definition at line 876 of file CallEvent.h.
|
protecteddefault |
Definition at line 920 of file CallEvent.h.
References clang::ento::CE_CXXAllocator.
|
inlineoverrideprotected |
Definition at line 881 of file CallEvent.h.
|
inlineoverride |
Definition at line 903 of file CallEvent.h.
|
inlineoverride |
Definition at line 888 of file CallEvent.h.
|
inlineoverride |
Definition at line 918 of file CallEvent.h.
References clang::ento::CE_CXXAllocator.
|
inlineoverride |
Definition at line 899 of file CallEvent.h.
|
inline |
Number of non-placement arguments to the call.
It is equal to 2 for C++17 aligned operator new() calls that have alignment implicitly passed as the second argument, and to 1 for other operator new() calls.
Definition at line 895 of file CallEvent.h.
|
inlinevirtual |
Definition at line 884 of file CallEvent.h.
References clang::ento::CallEvent::getOriginExpr().
|
inline |
Number of placement arguments to the operator new() call.
For example, standard std::nothrow operator new and standard placement new both have 1 implicit argument (size) and 1 placement argument, while regular operator new() has 1 implicit argument and 0 placement arguments.
Definition at line 914 of file CallEvent.h.
|
friend |
Definition at line 873 of file CallEvent.h.