clang  3.9.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
clang::LocationContext Class Referenceabstract

#include <AnalysisContext.h>

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

Public Types

enum  ContextKind { StackFrame, Scope, Block }
 

Public Member Functions

virtual ~LocationContext ()
 
ContextKind getKind () const
 
AnalysisDeclContextgetAnalysisDeclContext () const
 
const LocationContextgetParent () const
 
bool isParentOf (const LocationContext *LC) const
 
const DeclgetDecl () const
 
CFGgetCFG () const
 
template<typename T >
T * getAnalysis () const
 
ParentMapgetParentMap () const
 
const ImplicitParamDeclgetSelfDecl () const
 
const StackFrameContextgetCurrentStackFrame () const
 
virtual bool inTopFrame () const
 Return true if the current LocationContext has no caller context. More...
 
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 214 of file AnalysisContext.h.

Member Enumeration Documentation

Enumerator
StackFrame 
Scope 
Block 

Definition at line 216 of file AnalysisContext.h.

Constructor & Destructor Documentation

clang::LocationContext::LocationContext ( ContextKind  k,
AnalysisDeclContext ctx,
const LocationContext parent 
)
inlineprotected

Definition at line 228 of file AnalysisContext.h.

LocationContext::~LocationContext ( )
virtual

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

template<typename T >
T* clang::LocationContext::getAnalysis ( ) const
inline
AnalysisDeclContext* clang::LocationContext::getAnalysisDeclContext ( ) const
inline
CFG* clang::LocationContext::getCFG ( ) const
inline
const StackFrameContext * LocationContext::getCurrentStackFrame ( ) const
const Decl* clang::LocationContext::getDecl ( ) const
inline
ContextKind clang::LocationContext::getKind ( ) const
inline
const LocationContext* clang::LocationContext::getParent ( ) const
inline
ParentMap& clang::LocationContext::getParentMap ( ) const
inline
const ImplicitParamDecl* clang::LocationContext::getSelfDecl ( ) const
inline
bool LocationContext::inTopFrame ( ) const
virtual
bool LocationContext::isParentOf ( const LocationContext LC) const
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: