clang 20.0.0git
Public Attributes | List of all members
clang::transformer::Edit Struct Reference

A concrete description of a source edit, represented by a character range in the source to be replaced and a corresponding replacement string. More...

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

Public Attributes

EditKind Kind = EditKind::Range
 
CharSourceRange Range
 
std::string Replacement
 
std::string Note
 
llvm::Any Metadata
 

Detailed Description

A concrete description of a source edit, represented by a character range in the source to be replaced and a corresponding replacement string.

Definition at line 45 of file RewriteRule.h.

Member Data Documentation

◆ Kind

EditKind clang::transformer::Edit::Kind = EditKind::Range

Definition at line 46 of file RewriteRule.h.

◆ Metadata

llvm::Any clang::transformer::Edit::Metadata

Definition at line 50 of file RewriteRule.h.

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

◆ Note

std::string clang::transformer::Edit::Note

Definition at line 49 of file RewriteRule.h.

◆ Range

CharSourceRange clang::transformer::Edit::Range

Definition at line 47 of file RewriteRule.h.

◆ Replacement

std::string clang::transformer::Edit::Replacement

Definition at line 48 of file RewriteRule.h.


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