Go to the documentation of this file.
15 #ifndef LLVM_CLANG_TOOLING_TRANSFORMER_REWRITE_RULE_H_
16 #define LLVM_CLANG_TOOLING_TRANSFORMER_REWRITE_RULE_H_
24 #include "llvm/ADT/Any.h"
25 #include "llvm/ADT/STLExtras.h"
26 #include "llvm/ADT/SmallVector.h"
27 #include "llvm/Support/Error.h"
33 namespace transformer {
143 edit(std::move(FalseEdit)));
172 extern const char RootID[];
192 return changeTo(std::move(Replacement));
204 return changeTo(
after(std::move(S)), std::move(Replacement));
236 template <
typename Callable>
239 [Gen = std::move(Metadata)](
280 ast_matchers::internal::DynTypedMatcher
Matcher;
300 std::move(Explanation));
307 return makeRule(std::move(M),
edit(std::move(
Edit)), std::move(Explanation));
320 void addInclude(RewriteRule &Rule, llvm::StringRef Header,
426 ast_matchers::internal::DynTypedMatcher
buildMatcher(
const RewriteRule &Rule);
435 std::vector<ast_matchers::internal::DynTypedMatcher>
446 const RewriteRule::Case &
448 const RewriteRule &Rule);
453 #endif // LLVM_CLANG_TOOLING_TRANSFORMER_REWRITE_RULE_H_
Encodes a location in the source.
Decl - This represents one declaration (or definition), e.g.
Base wrapper for a particular "section" of type source info.
Represents a character-granular source range.
Contains all information for a given match.
Dataflow Directional Tag Classes.
Stmt - This represents one statement.
A dynamically typed AST node container.