clang 20.0.0git
Public Member Functions | Protected Attributes | List of all members
clang::tooling::RefactoringCallback Class Reference

Base class for RefactoringCallbacks. More...

#include "clang/Tooling/RefactoringCallbacks.h"

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

Public Member Functions

 RefactoringCallback ()
 
ReplacementsgetReplacements ()
 
- Public Member Functions inherited from clang::ast_matchers::MatchFinder::MatchCallback
virtual ~MatchCallback ()
 
virtual void run (const MatchResult &Result)=0
 Called on every match by the MatchFinder.
 
virtual void onStartOfTranslationUnit ()
 Called at the start of each translation unit.
 
virtual void onEndOfTranslationUnit ()
 Called at the end of each translation unit.
 
virtual StringRef getID () const
 An id used to group the matchers.
 
virtual std::optional< TraversalKindgetCheckTraversalKind () const
 TraversalKind to use while matching and processing the result nodes.
 

Protected Attributes

Replacements Replace
 

Detailed Description

Base class for RefactoringCallbacks.

Collects tooling::Replacements while running.

Definition at line 40 of file RefactoringCallbacks.h.

Constructor & Destructor Documentation

◆ RefactoringCallback()

clang::tooling::RefactoringCallback::RefactoringCallback ( )

Definition at line 22 of file RefactoringCallbacks.cpp.

Member Function Documentation

◆ getReplacements()

tooling::Replacements & clang::tooling::RefactoringCallback::getReplacements ( )

Definition at line 23 of file RefactoringCallbacks.cpp.

References Replace.

Member Data Documentation

◆ Replace

Replacements clang::tooling::RefactoringCallback::Replace
protected

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