15 #ifndef LLVM_CLANG_TOOLING_TRANSFORMER_REWRITE_RULE_H_ 16 #define LLVM_CLANG_TOOLING_TRANSFORMER_REWRITE_RULE_H_ 24 #include "llvm/ADT/STLExtras.h" 25 #include "llvm/ADT/SmallVector.h" 26 #include "llvm/Support/Error.h" 32 namespace transformer {
108 ast_matchers::internal::DynTypedMatcher
Matcher;
121 static constexpr llvm::StringLiteral RootID =
"___root___";
134 Edits.emplace_back(std::move(Edit));
135 return makeRule(std::move(M), std::move(Edits), std::move(Explanation));
196 return changeTo(std::move(Target), std::move(Replacement));
210 return changeTo(std::move(Replacement));
222 return changeTo(
after(std::move(S)), std::move(Replacement));
248 std::vector<ast_matchers::internal::DynTypedMatcher>
305 using namespace transformer::detail;
310 #endif // LLVM_CLANG_TOOLING_TRANSFORMER_REWRITE_RULE_H_
Represents a character-granular source range.
Contains all information for a given match.
Encodes a location in the source.
Dataflow Directional Tag Classes.
Defines a combinator library supporting the definition of selectors, which select source ranges based...