clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
clang::LocationContext Class Reference

#include <AnalysisContext.h>

Inheritance diagram for clang::LocationContext:
Inheritance graph
[legend]
Collaboration diagram for clang::LocationContext:
Collaboration graph
[legend]

List of all members.

Public Types

enum  ContextKind { StackFrame, Scope, Block }

Public Member Functions

virtual ~LocationContext ()
ContextKind getKind () const
AnalysisDeclContext * getAnalysisDeclContext () const
const LocationContext * getParent () const
bool isParentOf (const LocationContext *LC) const
const Decl * getDecl () const
CFG * getCFG () const
template<typename T >
T * getAnalysis () const
ParentMap & getParentMap () const
const ImplicitParamDecl * getSelfDecl () const
const StackFrameContext * getCurrentStackFrame () const
virtual bool inTopFrame () const
 Return true if the current LocationContext has no caller context.
virtual void Profile (llvm::FoldingSetNodeID &ID)=0
void dumpStack (raw_ostream &OS, StringRef Indent="") const
void dumpStack () const

Static Public Member Functions

static void ProfileCommon (llvm::FoldingSetNodeID &ID, ContextKind ck, AnalysisDeclContext *ctx, const LocationContext *parent, const void *data)

Protected Member Functions

 LocationContext (ContextKind k, AnalysisDeclContext *ctx, const LocationContext *parent)

Detailed Description

Definition at line 210 of file AnalysisContext.h.


Member Enumeration Documentation

Enumerator:
StackFrame 
Scope 
Block 

Definition at line 212 of file AnalysisContext.h.


Constructor & Destructor Documentation

clang::LocationContext::LocationContext ( ContextKind  k,
AnalysisDeclContext *  ctx,
const LocationContext *  parent 
) [inline, protected]

Definition at line 224 of file AnalysisContext.h.

Definition at line 571 of file AnalysisDeclContext.cpp.


Member Function Documentation

void LocationContext::dumpStack ( raw_ostream &  OS,
StringRef  Indent = "" 
) const
LLVM_DUMP_METHOD void LocationContext::dumpStack ( ) const

Definition at line 455 of file AnalysisDeclContext.cpp.

template<typename T >
T* clang::LocationContext::getAnalysis ( ) const [inline]
CFG* clang::LocationContext::getCFG ( ) const [inline]
const Decl* clang::LocationContext::getDecl ( ) const [inline]
bool LocationContext::inTopFrame ( ) const [virtual]

Return true if the current LocationContext has no caller context.

Reimplemented in clang::StackFrameContext.

Definition at line 414 of file AnalysisDeclContext.cpp.

References getCurrentStackFrame(), and clang::StackFrameContext::inTopFrame().

Referenced by clang::ento::CheckerContext::inTopFrame(), and clang::ento::ExprEngine::processEndOfFunction().

virtual void clang::LocationContext::Profile ( llvm::FoldingSetNodeID &  ID) [pure virtual]
void LocationContext::ProfileCommon ( llvm::FoldingSetNodeID &  ID,
ContextKind  ck,
AnalysisDeclContext *  ctx,
const LocationContext *  parent,
const void *  data 
) [static]

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