clang
3.9.0
|
Interface to generate clang::FrontendActions. More...
#include <Tooling.h>
Public Member Functions | |
~FrontendActionFactory () override | |
bool | runInvocation (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::FrontendAction * | create ()=0 |
Returns a new clang::FrontendAction. More... | |
![]() | |
virtual | ~ToolAction () |
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.
|
override |
Definition at line 43 of file Tooling.cpp.
|
pure virtual |
Returns a new clang::FrontendAction.
The caller takes ownership of the returned action.
Referenced by runInvocation().
|
overridevirtual |
Invokes the compiler with a FrontendAction created by create().
Implements clang::tooling::ToolAction.
Definition at line 289 of file Tooling.cpp.
References clang::FileManager::clearStatCaches(), create(), clang::CompilerInstance::createDiagnostics(), clang::CompilerInstance::createSourceManager(), clang::CompilerInstance::ExecuteAction(), clang::CompilerInstance::hasDiagnostics(), clang::CompilerInstance::setFileManager(), and clang::CompilerInstance::setInvocation().