class StackFrameContext

Declaration

class StackFrameContext : public LocationContext { /* full declaration omitted */ };

Description

It represents a stack frame of the call stack (based on CallEvent).

Declared at: clang/include/clang/Analysis/AnalysisDeclContext.h:299

Inherits from: LocationContext

Member Variables

private const clang::Stmt* CallSite
private const clang::CFGBlock* Block
private const unsigned int BlockCount
private const unsigned int Index

Method Overview

  • public void Profile(llvm::FoldingSetNodeID & ID)
  • public static void Profile(llvm::FoldingSetNodeID & ID, clang::AnalysisDeclContext * ADC, const clang::LocationContext * ParentLC, const clang::Stmt * S, const clang::CFGBlock * Block, unsigned int BlockCount, unsigned int Index)
  • private StackFrameContext(clang::AnalysisDeclContext * ADC, const clang::LocationContext * ParentLC, const clang::Stmt * S, const clang::CFGBlock * Block, unsigned int BlockCount, unsigned int Index, int64_t ID)
  • public static bool classof(const clang::LocationContext * LC)
  • public const clang::Stmt * getCallSite() const
  • public const clang::CFGBlock * getCallSiteBlock() const
  • public clang::CFGElement getCallSiteCFGElement() const
  • public unsigned int getIndex() const
  • public bool inTopFrame() const
  • public ~StackFrameContext()

Inherited from LocationContext:

Inherited from FoldingSetBase::Node:

Methods

void Profile(llvm::FoldingSetNodeID& ID)

Declared at: clang/include/clang/Analysis/AnalysisDeclContext.h:335

Parameters

llvm::FoldingSetNodeID& ID

static void Profile(
    llvm::FoldingSetNodeID& ID,
    clang::AnalysisDeclContext* ADC,
    const clang::LocationContext* ParentLC,
    const clang::Stmt* S,
    const clang::CFGBlock* Block,
    unsigned int BlockCount,
    unsigned int Index)

Declared at: clang/include/clang/Analysis/AnalysisDeclContext.h:337

Parameters

llvm::FoldingSetNodeID& ID
clang::AnalysisDeclContext* ADC
const clang::LocationContext* ParentLC
const clang::Stmt* S
const clang::CFGBlock* Block
unsigned int BlockCount
unsigned int Index

StackFrameContext(
    clang::AnalysisDeclContext* ADC,
    const clang::LocationContext* ParentLC,
    const clang::Stmt* S,
    const clang::CFGBlock* Block,
    unsigned int BlockCount,
    unsigned int Index,
    int64_t ID)

Declared at: clang/include/clang/Analysis/AnalysisDeclContext.h:316

Parameters

clang::AnalysisDeclContext* ADC
const clang::LocationContext* ParentLC
const clang::Stmt* S
const clang::CFGBlock* Block
unsigned int BlockCount
unsigned int Index
int64_t ID

static bool classof(
    const clang::LocationContext* LC)

Declared at: clang/include/clang/Analysis/AnalysisDeclContext.h:347

Parameters

const clang::LocationContext* LC

const clang::Stmt* getCallSite() const

Declared at: clang/include/clang/Analysis/AnalysisDeclContext.h:325

const clang::CFGBlock* getCallSiteBlock() const

Declared at: clang/include/clang/Analysis/AnalysisDeclContext.h:327

clang::CFGElement getCallSiteCFGElement() const

Declared at: clang/include/clang/Analysis/AnalysisDeclContext.h:333

unsigned int getIndex() const

Declared at: clang/include/clang/Analysis/AnalysisDeclContext.h:331

bool inTopFrame() const

Declared at: clang/include/clang/Analysis/AnalysisDeclContext.h:329

Returns

Whether the current LocationContext has no caller context.

~StackFrameContext()

Declared at: clang/include/clang/Analysis/AnalysisDeclContext.h:323