clang  7.0.0svn
Public Member Functions | List of all members
clang::tooling::FrontendActionFactory Class Referenceabstract

Interface to generate clang::FrontendActions. More...

#include "clang/Tooling/Tooling.h"

Inheritance diagram for clang::tooling::FrontendActionFactory:
Inheritance graph
Collaboration diagram for clang::tooling::FrontendActionFactory:
Collaboration graph

Public Member Functions

 ~FrontendActionFactory () override
bool runInvocation (std::shared_ptr< CompilerInvocation > Invocation, FileManager *Files, std::shared_ptr< PCHContainerOperations > PCHContainerOps, DiagnosticConsumer *DiagConsumer) override
 Invokes the compiler with a FrontendAction created by create(). More...
virtual FrontendActioncreate ()=0
 Returns a new clang::FrontendAction. More...
- Public Member Functions inherited from clang::tooling::ToolAction
virtual ~ToolAction ()

Detailed Description

Interface to generate clang::FrontendActions.

Having a factory interface allows, for example, a new FrontendAction to be created for each translation unit processed by ClangTool. This class is also a ToolAction which uses the FrontendActions created by create() to process each translation unit.

Definition at line 92 of file Tooling.h.

Constructor & Destructor Documentation

◆ ~FrontendActionFactory()

FrontendActionFactory::~FrontendActionFactory ( )

Member Function Documentation

◆ create()

virtual FrontendAction* clang::tooling::FrontendActionFactory::create ( )
pure virtual

Returns a new clang::FrontendAction.

The caller takes ownership of the returned action.

◆ runInvocation()

bool FrontendActionFactory::runInvocation ( std::shared_ptr< CompilerInvocation Invocation,
FileManager Files,
std::shared_ptr< PCHContainerOperations PCHContainerOps,
DiagnosticConsumer DiagConsumer 

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