|
clang 22.0.0git
|
Interface to generate clang::FrontendActions. More...
#include "clang/Tooling/Tooling.h"
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(). | |
| virtual std::unique_ptr< FrontendAction > | create ()=0 |
| Returns a new clang::FrontendAction. | |
| Public Member Functions inherited from clang::tooling::ToolAction | |
| 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.
|
overridedefault |
|
pure virtual |
Returns a new clang::FrontendAction.
Referenced by runInvocation().
|
overridevirtual |
Invokes the compiler with a FrontendAction created by create().
Implements clang::tooling::ToolAction.
Definition at line 441 of file Tooling.cpp.
References clang::FileManager::clearStatCache(), create(), clang::CompilerInstance::createDiagnostics(), clang::CompilerInstance::createSourceManager(), clang::CompilerInstance::ExecuteAction(), clang::FileManager::getVirtualFileSystemPtr(), clang::CompilerInstance::hasDiagnostics(), clang::CompilerInstance::setFileManager(), clang::CompilerInstance::setVirtualFileSystem(), and clang::Success.