Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
CppImport::TranslateFrontendAction Class Reference

This class is used for clang tools. More...

Inheritance diagram for CppImport::TranslateFrontendAction:

Public Member Functions

 TranslateFrontendAction (ClangAstVisitor *visitor, CppImportLogger *log)
 
virtual std::unique_ptr< clang::ASTConsumer > CreateASTConsumer (clang::CompilerInstance &compilerInstance, llvm::StringRef) override
 This method creates a new ClangAstConsumer with the visitor_ It updates the compile instance (i.e. More...
 

Private Attributes

CppImportLoggerlog_ {}
 
ClangAstVisitorvisitor_ {}
 

Detailed Description

This class is used for clang tools.

The CreateASTConsumer method is automatically called by the create method of the FrontendAction factory

Constructor & Destructor Documentation

◆ TranslateFrontendAction()

CppImport::TranslateFrontendAction::TranslateFrontendAction ( ClangAstVisitor visitor,
CppImportLogger log 
)

Member Function Documentation

◆ CreateASTConsumer()

std::unique_ptr< clang::ASTConsumer > CppImport::TranslateFrontendAction::CreateASTConsumer ( clang::CompilerInstance &  compilerInstance,
llvm::StringRef   
)
overridevirtual

This method creates a new ClangAstConsumer with the visitor_ It updates the compile instance (i.e.

the source manager) of the visitor_

Member Data Documentation

◆ log_

CppImportLogger* CppImport::TranslateFrontendAction::log_ {}
private

◆ visitor_

ClangAstVisitor* CppImport::TranslateFrontendAction::visitor_ {}
private