clang 19.0.0git
Public Attributes | List of all members
clang::transformer::ASTEdit Struct Reference

#include "clang/Tooling/Transformer/RewriteRule.h"

Public Attributes

EditKind Kind = EditKind::Range
RangeSelector TargetRange
TextGenerator Replacement
TextGenerator Note
AnyGenerator Metadata

Detailed Description

Definition at line 107 of file RewriteRule.h.

Member Data Documentation

◆ Kind

EditKind clang::transformer::ASTEdit::Kind = EditKind::Range

Definition at line 108 of file RewriteRule.h.

Referenced by clang::transformer::addInclude().

◆ Metadata

AnyGenerator clang::transformer::ASTEdit::Metadata
Initial value:
= [](const ast_matchers::MatchFinder::MatchResult &)
return llvm::Expected<llvm::Any>(llvm::Any());

Definition at line 114 of file RewriteRule.h.

◆ Note

TextGenerator clang::transformer::ASTEdit::Note

Definition at line 111 of file RewriteRule.h.

Referenced by clang::transformer::note().

◆ Replacement

TextGenerator clang::transformer::ASTEdit::Replacement

Definition at line 110 of file RewriteRule.h.

Referenced by clang::transformer::addInclude(), and clang::transformer::changeTo().

◆ TargetRange

RangeSelector clang::transformer::ASTEdit::TargetRange

The documentation for this struct was generated from the following file: