clang 20.0.0git
Public Member Functions | List of all members
clang::tooling::ToolAction Class Referenceabstract

Interface to process a clang::CompilerInvocation. More...

#include "clang/Tooling/Tooling.h"

Inheritance diagram for clang::tooling::ToolAction:
Inheritance graph
[legend]

Public Member Functions

virtual ~ToolAction ()
 
virtual bool runInvocation (std::shared_ptr< CompilerInvocation > Invocation, FileManager *Files, std::shared_ptr< PCHContainerOperations > PCHContainerOps, DiagnosticConsumer *DiagConsumer)=0
 Perform an action for an invocation.
 

Detailed Description

Interface to process a clang::CompilerInvocation.

If your tool is based on FrontendAction, you should be deriving from FrontendActionFactory instead.

Definition at line 80 of file Tooling.h.

Constructor & Destructor Documentation

◆ ~ToolAction()

ToolAction::~ToolAction ( )
virtualdefault

Member Function Documentation

◆ runInvocation()

virtual bool clang::tooling::ToolAction::runInvocation ( std::shared_ptr< CompilerInvocation Invocation,
FileManager Files,
std::shared_ptr< PCHContainerOperations PCHContainerOps,
DiagnosticConsumer DiagConsumer 
)
pure virtual

Perform an action for an invocation.

Implemented in clang::tooling::FrontendActionFactory.

Referenced by clang::tooling::ToolInvocation::run().


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