clang 20.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::BlockInvocationContext Class Reference

It represents a block invocation (based on BlockCall). More...

#include "clang/Analysis/AnalysisDeclContext.h"

Inheritance diagram for clang::BlockInvocationContext:
Inheritance graph
[legend]

Public Member Functions

 ~BlockInvocationContext () override=default
 
const BlockDeclgetBlockDecl () const
 
const void * getData () 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 AnalysisDeclContextgetAnalysisDeclContext () const
 
const LocationContextgetParent () const
 It might return null.
 
bool isParentOf (const LocationContext *LC) const
 
const DeclgetDecl () const
 
CFGgetCFG () const
 
template<typename T >
TgetAnalysis () const
 
const ParentMapgetParentMap () const
 
const ImplicitParamDeclgetSelfDecl () const
 
const StackFrameContextgetStackFrame () 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 BlockDecl *BD, const void *Data)
 
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)
 

Friends

class LocationContextManager
 

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)
 

Detailed Description

It represents a block invocation (based on BlockCall).

Definition at line 353 of file AnalysisDeclContext.h.

Constructor & Destructor Documentation

◆ ~BlockInvocationContext()

clang::BlockInvocationContext::~BlockInvocationContext ( )
overridedefault

Member Function Documentation

◆ classof()

static bool clang::BlockInvocationContext::classof ( const LocationContext LC)
inlinestatic

◆ getBlockDecl()

const BlockDecl * clang::BlockInvocationContext::getBlockDecl ( ) const
inline

Definition at line 369 of file AnalysisDeclContext.h.

◆ getData()

const void * clang::BlockInvocationContext::getData ( ) const
inline

Definition at line 371 of file AnalysisDeclContext.h.

References Data.

◆ Profile() [1/2]

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

◆ Profile() [2/2]

static void clang::BlockInvocationContext::Profile ( llvm::FoldingSetNodeID &  ID,
AnalysisDeclContext ADC,
const LocationContext ParentLC,
const BlockDecl BD,
const void *  Data 
)
inlinestatic

Friends And Related Function Documentation

◆ LocationContextManager

friend class LocationContextManager
friend

Definition at line 354 of file AnalysisDeclContext.h.


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