class SimpleFunctionCall

Declaration

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

Description

Represents a C function or static C++ member function call. Example: \c fun()

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

Inherits from: AnyFunctionCall

Member Variables

Inherited from CallEvent:

protected Data
protected Location

Method Overview

  • protected SimpleFunctionCall(const clang::CallExpr * CE, clang::ento::ProgramStateRef St, const clang::LocationContext * LCtx)
  • protected SimpleFunctionCall(const clang::ento::SimpleFunctionCall & Other)
  • public static bool classof(const clang::ento::CallEvent * CA)
  • 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::CallExpr * getOriginExpr() const

Inherited from AnyFunctionCall:

Inherited from CallEvent:

Methods

SimpleFunctionCall(
    const clang::CallExpr* CE,
    clang::ento::ProgramStateRef St,
    const clang::LocationContext* LCtx)

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

Parameters

const clang::CallExpr* CE
clang::ento::ProgramStateRef St
const clang::LocationContext* LCtx

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

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

Parameters

const clang::ento::SimpleFunctionCall& Other

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

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

Parameters

const clang::ento::CallEvent* CA

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:527

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:540

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:536

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

Description

Returns the kind of call this is.

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

llvm::StringRef getKindAsString() const

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

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:538

const clang::CallExpr* 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:532