clang 22.0.0git
cir::CIRGenConsumer Class Reference
Inheritance diagram for cir::CIRGenConsumer:
[legend]

Public Member Functions

 CIRGenConsumer (CIRGenAction::OutputType Action, CompilerInstance &CI, CodeGenOptions &CGO, std::unique_ptr< raw_pwrite_stream > OS)
void Initialize (ASTContext &Ctx) override
 Initialize - This is called to initialize the consumer, providing the ASTContext.
bool HandleTopLevelDecl (DeclGroupRef D) override
 HandleTopLevelDecl - Handle the specified top-level declaration.
void HandleCXXStaticMemberVarInstantiation (clang::VarDecl *VD) override
 HandleCXXStaticMemberVarInstantiation - Tell the consumer that this.
void HandleInlineFunctionDefinition (FunctionDecl *D) override
 This callback is invoked each time an inline (method or friend) function definition in a class is completed.
void HandleTranslationUnit (ASTContext &C) override
 HandleTranslationUnit - This method is called when the ASTs for entire translation unit have been parsed.
void HandleTagDeclDefinition (TagDecl *D) override
 HandleTagDeclDefinition - This callback is invoked each time a TagDecl (e.g.
void HandleTagDeclRequiredDefinition (const TagDecl *D) override
 This callback is invoked the first time each TagDecl is required to be complete.
void CompleteTentativeDefinition (VarDecl *D) override
 CompleteTentativeDefinition - Callback invoked at the end of a translation unit to notify the consumer that the given tentative definition should be completed.
void HandleVTable (CXXRecordDecl *RD) override
 Callback involved at the end of a translation unit to notify the consumer that a vtable for the given C++ class is required.
Public Member Functions inherited from clang::ASTConsumer
 ASTConsumer ()=default
virtual ~ASTConsumer ()
virtual void HandleInterestingDecl (DeclGroupRef D)
 HandleInterestingDecl - Handle the specified interesting declaration.
virtual void HandleCXXImplicitFunctionInstantiation (FunctionDecl *D)
 Invoked when a function is implicitly instantiated.
virtual void HandleTopLevelDeclInObjCContainer (DeclGroupRef D)
 Handle the specified top-level declaration that occurred inside and ObjC container.
virtual void HandleImplicitImportDecl (ImportDecl *D)
 Handle an ImportDecl that was implicitly created due to an inclusion directive.
virtual void CompleteExternalDeclaration (DeclaratorDecl *D)
 CompleteExternalDeclaration - Callback invoked at the end of a translation unit to notify the consumer that the given external declaration should be completed.
virtual void AssignInheritanceModel (CXXRecordDecl *RD)
 Callback invoked when an MSInheritanceAttr has been attached to a CXXRecordDecl.
virtual ASTMutationListenerGetASTMutationListener ()
 If the consumer is interested in entities getting modified after their initial creation, it should return a pointer to an ASTMutationListener here.
virtual ASTDeserializationListenerGetASTDeserializationListener ()
 If the consumer is interested in entities being deserialized from AST files, it should return a pointer to a ASTDeserializationListener here.
virtual void PrintStats ()
 PrintStats - If desired, print any statistics.
virtual bool shouldSkipFunctionBody (Decl *D)
 This callback is called for each function if the Parser was initialized with SkipFunctionBodies set to true.

Detailed Description

Definition at line 51 of file CIRGenAction.cpp.

Constructor & Destructor Documentation

◆ CIRGenConsumer()

cir::CIRGenConsumer::CIRGenConsumer ( CIRGenAction::OutputType Action,
CompilerInstance & CI,
CodeGenOptions & CGO,
std::unique_ptr< raw_pwrite_stream > OS )
inline

Definition at line 68 of file CIRGenAction.cpp.

Member Function Documentation

◆ CompleteTentativeDefinition()

void cir::CIRGenConsumer::CompleteTentativeDefinition ( VarDecl * D)
inlineoverridevirtual

CompleteTentativeDefinition - Callback invoked at the end of a translation unit to notify the consumer that the given tentative definition should be completed.

The variable declaration itself will be a tentative definition. If it had an incomplete array type, its type will have already been changed to an array of size 1. However, the declaration remains a tentative definition and has not been modified by the introduction of an implicit zero initializer.

Reimplemented from clang::ASTConsumer.

Definition at line 158 of file CIRGenAction.cpp.

◆ HandleCXXStaticMemberVarInstantiation()

void cir::CIRGenConsumer::HandleCXXStaticMemberVarInstantiation ( clang::VarDecl * D)
inlineoverridevirtual

HandleCXXStaticMemberVarInstantiation - Tell the consumer that this.

Reimplemented from clang::ASTConsumer.

Definition at line 87 of file CIRGenAction.cpp.

◆ HandleInlineFunctionDefinition()

void cir::CIRGenConsumer::HandleInlineFunctionDefinition ( FunctionDecl * D)
inlineoverridevirtual

This callback is invoked each time an inline (method or friend) function definition in a class is completed.

Reimplemented from clang::ASTConsumer.

Definition at line 91 of file CIRGenAction.cpp.

◆ HandleTagDeclDefinition()

void cir::CIRGenConsumer::HandleTagDeclDefinition ( TagDecl * D)
inlineoverridevirtual

HandleTagDeclDefinition - This callback is invoked each time a TagDecl (e.g.

struct, union, enum, class) is completed. This allows the client to hack on the type, which can occur at any point in the file (because these can be defined in declspecs).

Reimplemented from clang::ASTConsumer.

Definition at line 147 of file CIRGenAction.cpp.

◆ HandleTagDeclRequiredDefinition()

void cir::CIRGenConsumer::HandleTagDeclRequiredDefinition ( const TagDecl * D)
inlineoverridevirtual

This callback is invoked the first time each TagDecl is required to be complete.

Reimplemented from clang::ASTConsumer.

Definition at line 154 of file CIRGenAction.cpp.

◆ HandleTopLevelDecl()

bool cir::CIRGenConsumer::HandleTopLevelDecl ( DeclGroupRef D)
inlineoverridevirtual

HandleTopLevelDecl - Handle the specified top-level declaration.

This is called by the parser to process every top-level Decl*.

Returns
true to continue parsing, or false to abort parsing.

Reimplemented from clang::ASTConsumer.

Definition at line 82 of file CIRGenAction.cpp.

◆ HandleTranslationUnit()

void cir::CIRGenConsumer::HandleTranslationUnit ( ASTContext & Ctx)
inlineoverridevirtual

◆ HandleVTable()

void cir::CIRGenConsumer::HandleVTable ( CXXRecordDecl * RD)
inlineoverridevirtual

Callback involved at the end of a translation unit to notify the consumer that a vtable for the given C++ class is required.

Parameters
RDThe class whose vtable was used.

Reimplemented from clang::ASTConsumer.

Definition at line 162 of file CIRGenAction.cpp.

◆ Initialize()

void cir::CIRGenConsumer::Initialize ( ASTContext & Context)
inlineoverridevirtual

Initialize - This is called to initialize the consumer, providing the ASTContext.

Reimplemented from clang::ASTConsumer.

Definition at line 76 of file CIRGenAction.cpp.


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