|
clang 22.0.0git
|
Base class for RefactoringCallbacks. More...
#include "clang/Tooling/RefactoringCallbacks.h"
Public Member Functions | |
| RefactoringCallback () | |
| Replacements & | getReplacements () |
| 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< TraversalKind > | getCheckTraversalKind () const |
| TraversalKind to use while matching and processing the result nodes. | |
Protected Attributes | |
| Replacements | Replace |
Base class for RefactoringCallbacks.
Collects tooling::Replacements while running.
Definition at line 40 of file RefactoringCallbacks.h.
| clang::tooling::RefactoringCallback::RefactoringCallback | ( | ) |
Definition at line 22 of file RefactoringCallbacks.cpp.
| tooling::Replacements & clang::tooling::RefactoringCallback::getReplacements | ( | ) |
Definition at line 23 of file RefactoringCallbacks.cpp.
References Replace.
|
protected |
Definition at line 46 of file RefactoringCallbacks.h.
Referenced by getReplacements(), clang::tooling::ReplaceIfStmtWithItsBody::run(), clang::tooling::ReplaceNodeWithTemplate::run(), clang::tooling::ReplaceStmtWithStmt::run(), and clang::tooling::ReplaceStmtWithText::run().