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

A type of refactoring action rule that produces source replacements in the form of atomic changes. More...

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

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

Public Member Functions

void invoke (RefactoringResultConsumer &Consumer, RefactoringRuleContext &Context) final
 Initiates and performs a specific refactoring action.
 
- Public Member Functions inherited from clang::tooling::RefactoringActionRuleBase
virtual ~RefactoringActionRuleBase ()
 
virtual void invoke (RefactoringResultConsumer &Consumer, RefactoringRuleContext &Context)=0
 Initiates and performs a specific refactoring action.
 

Detailed Description

A type of refactoring action rule that produces source replacements in the form of atomic changes.

This action rule is typically used for local refactorings that replace source in a single AST unit.

Definition at line 52 of file RefactoringActionRules.h.

Member Function Documentation

◆ invoke()

void clang::tooling::SourceChangeRefactoringRule::invoke ( RefactoringResultConsumer Consumer,
RefactoringRuleContext Context 
)
inlinefinalvirtual

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.

Implements clang::tooling::RefactoringActionRuleBase.

Definition at line 54 of file RefactoringActionRules.h.


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