clang 23.0.0git
clang::StackFrameManager Class Reference

#include "clang/Analysis/AnalysisDeclContext.h"

Public Member Functions

 ~StackFrameManager ()
const StackFramegetStackFrame (AnalysisDeclContext *ADC, const StackFrame *ParentSF, const void *Data, const Expr *E, const CFGBlock *Block, unsigned BlockCount, unsigned StmtIdx)
 Obtain a context of the call stack using its parent context.
void clear ()
 Discard all previously created StackFrame objects.

Detailed Description

Definition at line 318 of file AnalysisDeclContext.h.

Constructor & Destructor Documentation

◆ ~StackFrameManager()

StackFrameManager::~StackFrameManager ( )

Definition at line 617 of file AnalysisDeclContext.cpp.

References clear().

Member Function Documentation

◆ clear()

void StackFrameManager::clear ( )

Discard all previously created StackFrame objects.

Definition at line 619 of file AnalysisDeclContext.cpp.

Referenced by ~StackFrameManager().

◆ getStackFrame()

const StackFrame * StackFrameManager::getStackFrame ( AnalysisDeclContext * ADC,
const StackFrame * ParentSF,
const void * Data,
const Expr * E,
const CFGBlock * Block,
unsigned BlockCount,
unsigned StmtIdx )

Obtain a context of the call stack using its parent context.

Parameters
ADCThe AnalysisDeclContext.
ParentSFThe parent context of this newly created context.
DataExtra data in case this StackFrame is created for a BlockInvocation.
EThe call expression.
BlockThe basic block.
BlockCountThe current count of entering into Block.
StmtIdxThe index of the call expression E among the statements of the CFGBlock Block.
Returns
The stack frame context corresponding to the call.

Definition at line 408 of file AnalysisDeclContext.cpp.

References clang::Data, and clang::StackFrame::Profile().


The documentation for this class was generated from the following files: