clang API Documentation

Public Member Functions
clang::tooling::FrontendActionFactory Class Reference

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

#include <Tooling.h>

Inheritance diagram for clang::tooling::FrontendActionFactory:
Inheritance graph
[legend]
Collaboration diagram for clang::tooling::FrontendActionFactory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~FrontendActionFactory ()
bool runInvocation (clang::CompilerInvocation *Invocation, FileManager *Files, DiagnosticConsumer *DiagConsumer) override
 Invokes the compiler with a FrontendAction created by create().
virtual clang::FrontendActioncreate ()=0
 Returns a new clang::FrontendAction.

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 79 of file Tooling.h.


Constructor & Destructor Documentation

Definition at line 48 of file Tooling.cpp.


Member Function Documentation

Returns a new clang::FrontendAction.

The caller takes ownership of the returned action.

Referenced by runInvocation().

bool clang::tooling::FrontendActionFactory::runInvocation ( clang::CompilerInvocation Invocation,
FileManager Files,
DiagnosticConsumer DiagConsumer 
) [override, virtual]

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