clang: clang::StackFrameContext Class Reference (original) (raw)

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

#include "[clang/Analysis/AnalysisDeclContext.h](AnalysisDeclContext%5F8h%5Fsource.html)"

Public Member Functions
~StackFrameContext () override=default
const Stmt * getCallSite () const
const CFGBlock * getCallSiteBlock () const
bool inTopFrame () const override
unsigned getIndex () const
CFGElement getCallSiteCFGElement () const
void Profile (llvm::FoldingSetNodeID &ID) override
- Public Member Functions inherited from clang::LocationContext
virtual ~LocationContext ()
ContextKind getKind () const
int64_t getID () const
LLVM_ATTRIBUTE_RETURNS_NONNULL AnalysisDeclContext * getAnalysisDeclContext () const
const LocationContext * getParent () const
It might return null.
bool isParentOf (const LocationContext *LC) const
const Decl * getDecl () const
CFG * getCFG () const
template<typename T >
T * getAnalysis () const
const ParentMap & getParentMap () const
const ImplicitParamDecl * getSelfDecl () const
const StackFrameContext * getStackFrame () const
virtual bool inTopFrame () const
virtual void Profile (llvm::FoldingSetNodeID &ID)=0
LLVM_DUMP_METHOD void dumpStack (raw_ostream &Out) const
Prints out the call stack.
void printJson (raw_ostream &Out, const char *NL="\n", unsigned int Space=0, bool IsDot=false, std::function< void(const LocationContext *)> printMoreInfoPerContext=[](const LocationContext *) {}) const
Prints out the call stack in json format.
LLVM_DUMP_METHOD void dump () const
Static Public Member Functions
static void Profile (llvm::FoldingSetNodeID &ID, AnalysisDeclContext *ADC, const LocationContext *ParentLC, const Stmt *S, const CFGBlock *Block, unsigned BlockCount, unsigned Index)
static bool classof (const LocationContext *LC)
- Static Public Member Functions inherited from clang::LocationContext
static void ProfileCommon (llvm::FoldingSetNodeID &ID, ContextKind ck, AnalysisDeclContext *ctx, const LocationContext *parent, const void *data)
Additional Inherited Members
- Public Types inherited from clang::LocationContext
enum ContextKind { StackFrame, Block }
- Protected Member Functions inherited from clang::LocationContext
LocationContext (ContextKind k, AnalysisDeclContext *ctx, const LocationContext *parent, int64_t ID)
clang::StackFrameContext::~StackFrameContext ( ) overridedefault

classof()

getCallSite()

const Stmt * clang::StackFrameContext::getCallSite ( ) const inline

getCallSiteBlock()

const CFGBlock * clang::StackFrameContext::getCallSiteBlock ( ) const inline

getCallSiteCFGElement()

CFGElement clang::StackFrameContext::getCallSiteCFGElement ( ) const inline

getIndex()

unsigned clang::StackFrameContext::getIndex ( ) const inline

inTopFrame()

bool clang::StackFrameContext::inTopFrame ( ) const inlineoverridevirtual

Profile() [1/2]

void StackFrameContext::Profile ( llvm::FoldingSetNodeID & ID) overridevirtual

Profile() [2/2]

LocationContextManager


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