28#ifndef LLVM_CLANG_TOOLING_REFACTORINGCALLBACKS_H
29#define LLVM_CLANG_TOOLING_REFACTORINGCALLBACKS_H
56 std::map<std::string, Replacements> &FileToReplaces);
61 Callbacks.push_back(Callback);
71 std::vector<RefactoringCallback *> Callbacks;
73 std::map<std::string, Replacements> &FileToReplaces;
97 create(StringRef FromId, StringRef ToTemplate);
101 struct TemplateElement {
106 std::vector<TemplateElement> Template);
108 std::vector<TemplateElement> Template;
133 const bool PickTrueBranch;
The base class of the type hierarchy.
Called when the Match registered for it was successfully found in the AST.
A class to allow finding matches over the Clang AST.
void addMatcher(const DeclarationMatcher &NodeMatch, MatchCallback *Action)
Adds a matcher to execute when running over the AST.
Replace an if-statement bound to Id with the outdented text of its body, choosing the consequent or t...
void run(const ast_matchers::MatchFinder::MatchResult &Result) override
Called on every match by the MatchFinder.
Replace the text of the statement bound to FromId with the text in ToText.
void run(const ast_matchers::MatchFinder::MatchResult &Result) override
Called on every match by the MatchFinder.
The JSON file list parser is used to communicate input to InstallAPI.
@ Result
The result type of a method or function.
const FunctionProtoType * T
Contains all information for a given match.