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

A common refactoring action rule interface that defines the 'invoke' function that performs the refactoring operation (either fully or partially). More...

#include "clang/Tooling/Refactoring/RefactoringActionRule.h"

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

Public Member Functions

virtual ~RefactoringActionRuleBase ()
 
virtual void invoke (RefactoringResultConsumer &Consumer, RefactoringRuleContext &Context)=0
 Initiates and performs a specific refactoring action.
 

Detailed Description

A common refactoring action rule interface that defines the 'invoke' function that performs the refactoring operation (either fully or partially).

Definition at line 34 of file RefactoringActionRule.h.

Constructor & Destructor Documentation

◆ ~RefactoringActionRuleBase()

virtual clang::tooling::RefactoringActionRuleBase::~RefactoringActionRuleBase ( )
inlinevirtual

Definition at line 36 of file RefactoringActionRule.h.

Member Function Documentation

◆ invoke()

virtual void clang::tooling::RefactoringActionRuleBase::invoke ( RefactoringResultConsumer Consumer,
RefactoringRuleContext Context 
)
pure virtual

Initiates and performs a specific refactoring action.

The specific rule will invoke an appropriate handle method on a consumer to propagate the result of the refactoring action.

Implemented in clang::tooling::SourceChangeRefactoringRule, and clang::tooling::FindSymbolOccurrencesRefactoringRule.


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