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
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
const StackFrameContextgetStackFrameForDeclContext (const DeclContext *DC) const
virtual void Profile (llvm::FoldingSetNodeID &ID)=0

Static Public Member Functions

static bool classof (const LocationContext *)
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 183 of file AnalysisContext.h.


Member Enumeration Documentation

Enumerator:
StackFrame 
Scope 
Block 

Definition at line 185 of file AnalysisContext.h.


Constructor & Destructor Documentation

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

Definition at line 197 of file AnalysisContext.h.

LocationContext::~LocationContext ( ) [virtual]

Definition at line 442 of file AnalysisDeclContext.cpp.


Member Function Documentation

static bool clang::LocationContext::classof ( const LocationContext ) [inline, static]
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]
const StackFrameContext * LocationContext::getStackFrameForDeclContext ( const DeclContext DC) const

Definition at line 301 of file AnalysisDeclContext.cpp.

References getParent(), and NULL.

Referenced by clang::ento::MemRegionManager::getVarRegion().

bool LocationContext::isParentOf ( const LocationContext LC) const

Definition at line 313 of file AnalysisDeclContext.cpp.

References getParent().

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: