clang  14.0.0git
Public Member Functions | List of all members
clang::LocationContextManager Class Reference

#include "clang/Analysis/AnalysisDeclContext.h"

Public Member Functions

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

Detailed Description

Definition at line 383 of file AnalysisDeclContext.h.

Constructor & Destructor Documentation

◆ ~LocationContextManager()

LocationContextManager::~LocationContextManager ( )

Definition at line 694 of file AnalysisDeclContext.cpp.

References clear().

Member Function Documentation

◆ clear()

void LocationContextManager::clear ( )

Discard all previously created LocationContext objects.

Definition at line 698 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 443 of file AnalysisDeclContext.cpp.

References clang::BlockInvocationContext::Profile().

Referenced by clang::AnalysisDeclContext::getBlockInvocationContext().

◆ getStackFrame()

const StackFrameContext * LocationContextManager::getStackFrame ( AnalysisDeclContext ADC,
const LocationContext ParentLC,
const Stmt S,
const CFGBlock Block,
unsigned  BlockCount,
unsigned  Index 
)

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

Parameters
ADCThe AnalysisDeclContext.
ParentLCThe parent context of this newly created context.
SThe call.
BlockThe basic block.
BlockCountThe current count of entering into Blk.
IndexThe index of Blk.
Returns
The context for D with parent context ParentLC.

Definition at line 428 of file AnalysisDeclContext.cpp.

References clang::StackFrameContext::Profile(), and s.

Referenced by clang::AnalysisDeclContextManager::getStackFrame().


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