Defines a library supporting the concise specification of clang-based source-to-source transformations.
More...
|
TextGenerator | clang::tooling::text (std::string M) |
| Wraps a string as a TextGenerator. More...
|
|
RewriteRule | clang::tooling::makeRule (ast_matchers::internal::DynTypedMatcher M, SmallVector< ASTEdit, 1 > Edits, TextGenerator Explanation=nullptr) |
| Convenience function for constructing a simple RewriteRule . More...
|
|
RewriteRule | clang::tooling::makeRule (ast_matchers::internal::DynTypedMatcher M, ASTEdit Edit, TextGenerator Explanation=nullptr) |
| Convenience overload of makeRule for common case of only one edit. More...
|
|
void | clang::tooling::addInclude (RewriteRule &Rule, llvm::StringRef Header, IncludeFormat Format=IncludeFormat::Quoted) |
| For every case in Rule, adds an include directive for the given header. More...
|
|
RewriteRule | clang::tooling::applyFirst (ArrayRef< RewriteRule > Rules) |
| Applies the first rule whose pattern matches; other rules are ignored. More...
|
|
ASTEdit | clang::tooling::change (RangeSelector Target, TextGenerator Replacement) |
| Replaces a portion of the source text with Replacement . More...
|
|
ASTEdit | clang::tooling::change (TextGenerator Replacement) |
| Replaces the entirety of a RewriteRule's match with Replacement . More...
|
|
ASTEdit | clang::tooling::insertBefore (RangeSelector S, TextGenerator Replacement) |
| Inserts Replacement before S , leaving the source selected by unchanged. More...
|
|
ASTEdit | clang::tooling::insertAfter (RangeSelector S, TextGenerator Replacement) |
| Inserts Replacement after S , leaving the source selected by unchanged. More...
|
|
ASTEdit | clang::tooling::remove (RangeSelector S) |
| Removes the source selected by S . More...
|
|
ast_matchers::internal::DynTypedMatcher | clang::tooling::detail::buildMatcher (const RewriteRule &Rule) |
| Builds a single matcher for the rule, covering all of the rule's cases. More...
|
|
const RewriteRule::Case & | clang::tooling::detail::findSelectedCase (const ast_matchers::MatchFinder::MatchResult &Result, const RewriteRule &Rule) |
| Returns the Case of Rule that was selected in the match result. More...
|
|
Expected< SmallVector< Transformation, 1 > > | clang::tooling::detail::translateEdits (const ast_matchers::MatchFinder::MatchResult &Result, llvm::ArrayRef< ASTEdit > Edits) |
| Attempts to translate Edits , which are in terms of AST nodes bound in the match Result , into Transformations, which are in terms of the source code text. More...
|
|
Defines a library supporting the concise specification of clang-based source-to-source transformations.
Definition in file Transformer.h.