class LocationContextManager

Declaration

class LocationContextManager { /* full declaration omitted */ };

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

Member Variables

private llvm::FoldingSet<LocationContext> Contexts
private int64_t NewID = 0

Method Overview

  • public void clear()
  • public const clang::BlockInvocationContext * getBlockInvocationContext(clang::AnalysisDeclContext * ADC, const clang::LocationContext * ParentLC, const clang::BlockDecl * BD, const void * Data)
  • public const clang::StackFrameContext * getStackFrame(clang::AnalysisDeclContext * ADC, const clang::LocationContext * ParentLC, const clang::Stmt * S, const clang::CFGBlock * Block, unsigned int BlockCount, unsigned int Index)
  • public ~LocationContextManager()

Methods

void clear()

Description

Discard all previously created LocationContext objects.

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

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

Description

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

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

Parameters

clang::AnalysisDeclContext* ADC
The AnalysisDeclContext.
const clang::LocationContext* ParentLC
The parent context of this newly created context.
const clang::BlockDecl* BD
The BlockDecl.
const void* Data
The raw data to store as part of the context.

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

Description

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

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

Parameters

clang::AnalysisDeclContext* ADC
The AnalysisDeclContext.
const clang::LocationContext* ParentLC
The parent context of this newly created context.
const clang::Stmt* S
The call.
const clang::CFGBlock* Block
The basic block.
unsigned int BlockCount
The current count of entering into \p Blk.
unsigned int Index
The index of \p Blk.

Returns

The context for \p D with parent context \p ParentLC.

~LocationContextManager()

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