clang 20.0.0git
|
Adaptor between ast_matchers::MatchFinder
and tooling::RefactoringTool
.
More...
#include "clang/Tooling/RefactoringCallbacks.h"
Public Member Functions | |
ASTMatchRefactorer (std::map< std::string, Replacements > &FileToReplaces) | |
template<typename T > | |
void | addMatcher (const T &Matcher, RefactoringCallback *Callback) |
void | addDynamicMatcher (const ast_matchers::internal::DynTypedMatcher &Matcher, RefactoringCallback *Callback) |
std::unique_ptr< ASTConsumer > | newASTConsumer () |
Friends | |
class | RefactoringASTConsumer |
Adaptor between ast_matchers::MatchFinder
and tooling::RefactoringTool
.
Runs AST matchers and stores the tooling::Replacements
in a map.
Definition at line 53 of file RefactoringCallbacks.h.
|
explicit |
Definition at line 27 of file RefactoringCallbacks.cpp.
void clang::tooling::ASTMatchRefactorer::addDynamicMatcher | ( | const ast_matchers::internal::DynTypedMatcher & | Matcher, |
RefactoringCallback * | Callback | ||
) |
Definition at line 31 of file RefactoringCallbacks.cpp.
References clang::ast_matchers::MatchFinder::addDynamicMatcher().
|
inline |
Definition at line 59 of file RefactoringCallbacks.h.
References clang::ast_matchers::MatchFinder::addMatcher().
std::unique_ptr< ASTConsumer > clang::tooling::ASTMatchRefactorer::newASTConsumer | ( | ) |
Definition at line 68 of file RefactoringCallbacks.cpp.
|
friend |
Definition at line 70 of file RefactoringCallbacks.h.