class CXXDeallocatorCall

Declaration

class CXXDeallocatorCall : public AnyFunctionCall { /* full declaration omitted */ };

Description

Represents the memory deallocation call in a C++ delete-expression. This is a call to "operator delete".

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:1069

Inherits from: AnyFunctionCall

Member Variables

Inherited from CallEvent:

protected Data
protected Location

Method Overview

  • protected CXXDeallocatorCall(const clang::CXXDeleteExpr * E, clang::ento::ProgramStateRef St, const clang::LocationContext * LCtx)
  • protected CXXDeallocatorCall(const clang::ento::CXXDeallocatorCall & Other)
  • public static bool classof(const clang::ento::CallEvent * CE)
  • protected void cloneTo(void * Dest) const
  • public const clang::Expr * getArgExpr(unsigned int Index) const
  • public const clang::FunctionDecl * getDecl() const
  • public clang::ento::CallEvent::Kind getKind() const
  • public llvm::StringRef getKindAsString() const
  • public unsigned int getNumArgs() const
  • public const clang::CXXDeleteExpr * getOriginExpr() const

Inherited from AnyFunctionCall:

Inherited from CallEvent:

Methods

CXXDeallocatorCall(
    const clang::CXXDeleteExpr* E,
    clang::ento::ProgramStateRef St,
    const clang::LocationContext* LCtx)

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:1073

Parameters

const clang::CXXDeleteExpr* E
clang::ento::ProgramStateRef St
const clang::LocationContext* LCtx

CXXDeallocatorCall(
    const clang::ento::CXXDeallocatorCall& Other)

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:1076

Parameters

const clang::ento::CXXDeallocatorCall& Other

static bool classof(
    const clang::ento::CallEvent* CE)

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:1101

Parameters

const clang::ento::CallEvent* CE

void cloneTo(void* Dest) const

Description

Copies this CallEvent, with vtable intact, into a new block of memory.

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:1078

Parameters

void* Dest

const clang::Expr* getArgExpr(
    unsigned int Index) const

Description

Returns the expression associated with a given argument. May be null if this expression does not appear in the source.

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:1093

Parameters

unsigned int Index

const clang::FunctionDecl* getDecl() const

Description

Returns the declaration of the function or method that will be called. May be null.

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:1087

clang::ento::CallEvent::Kind getKind() const

Description

Returns the kind of call this is.

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:1098

llvm::StringRef getKindAsString() const

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:1099

unsigned int getNumArgs() const

Description

Returns the number of arguments (explicit and implicit). Note that this may be greater than the number of parameters in the callee's declaration, and that it may include arguments not written in the source.

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:1091

const clang::CXXDeleteExpr* getOriginExpr() const

Description

Returns the expression whose value will be the result of this call. May be null.

Declared at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:1083