clang  6.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
[legend]
Collaboration diagram for clang::tooling::FrontendActionFactory:
Collaboration graph
[legend]

Public Member Functions

 ~FrontendActionFactory () override
 
bool runInvocation (std::shared_ptr< clang::CompilerInvocation > Invocation, FileManager *Files, std::shared_ptr< PCHContainerOperations > PCHContainerOps, DiagnosticConsumer *DiagConsumer) override
 Invokes the compiler with a FrontendAction created by create(). More...
 
virtual clang::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 84 of file Tooling.h.

Constructor & Destructor Documentation

◆ ~FrontendActionFactory()

clang::tooling::FrontendActionFactory::~FrontendActionFactory ( )
override

Definition at line 47 of file Tooling.cpp.

Member Function Documentation

◆ create()

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

Returns a new clang::FrontendAction.

The caller takes ownership of the returned action.

◆ runInvocation()

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

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