clang 23.0.0git
clang::LocationContextManager Class Reference

#include "clang/Analysis/AnalysisDeclContext.h"

Public Member Functions

 ~LocationContextManager ()
const StackFrameContextgetStackFrame (AnalysisDeclContext *ADC, const LocationContext *ParentLC, const Expr *E, const CFGBlock *Block, unsigned BlockCount, unsigned StmtIdx)
 Obtain a context of the call stack using its parent context.
const BlockInvocationContextgetBlockInvocationContext (AnalysisDeclContext *ADC, const LocationContext *ParentLC, const BlockDecl *BD, const void *Data)
 Obtain a context of the block invocation using its parent context.
void clear ()
 Discard all previously created LocationContext objects.

Detailed Description

Definition at line 387 of file AnalysisDeclContext.h.

Constructor & Destructor Documentation

◆ ~LocationContextManager()

LocationContextManager::~LocationContextManager ( )

Definition at line 697 of file AnalysisDeclContext.cpp.

References clear().

Member Function Documentation

◆ clear()

void LocationContextManager::clear ( )

Discard all previously created LocationContext objects.

Definition at line 701 of file AnalysisDeclContext.cpp.

Referenced by ~LocationContextManager().

◆ getBlockInvocationContext()

const BlockInvocationContext * LocationContextManager::getBlockInvocationContext ( AnalysisDeclContext * ADC,
const LocationContext * ParentLC,
const BlockDecl * BD,
const void * Data )

Obtain a context of the block invocation using its parent context.

Parameters
ADCThe AnalysisDeclContext.
ParentLCThe parent context of this newly created context.
BDThe BlockDecl.
DataThe raw data to store as part of the context.

Definition at line 446 of file AnalysisDeclContext.cpp.

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

◆ getStackFrame()

const StackFrameContext * LocationContextManager::getStackFrame ( AnalysisDeclContext * ADC,
const LocationContext * ParentLC,
const Expr * E,
const CFGBlock * Block,
unsigned BlockCount,
unsigned StmtIdx )

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

Parameters
ADCThe AnalysisDeclContext.
ParentLCThe parent context of this newly created context.
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 430 of file AnalysisDeclContext.cpp.

References clang::StackFrameContext::Profile().


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