struct RewriteRuleWith
Declaration
template <typename MetadataT>
struct RewriteRuleWith : public RewriteRuleBase { /* full declaration omitted */ };
Description
A source-code transformation with accompanying metadata. When a case of the rule matches, the \c Transformer invokes the corresponding metadata generator and provides it alongside the edits.
Declared at: clang/include/clang/Tooling/Transformer/RewriteRule.h:290
Inherits from: RewriteRuleBase
Templates
- MetadataT
Member Variables
- public SmallVector<Generator<MetadataT>, 1> Metadata
Inherited from RewriteRuleBase: