clang  13.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"

Collaboration diagram for clang::transformer::Edit:
Collaboration graph
[legend]

Public Attributes

EditKind Kind = EditKind::Range
 
CharSourceRange Range
 
std::string Replacement
 
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.

Referenced by clang::transformer::noopEdit(), and translateEdits().

◆ Metadata

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

Definition at line 49 of file RewriteRule.h.

Referenced by translateEdits(), and clang::transformer::withMetadata().

◆ Range

CharSourceRange clang::transformer::Edit::Range

Definition at line 47 of file RewriteRule.h.

Referenced by clang::transformer::noopEdit(), and translateEdits().

◆ Replacement

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

Definition at line 48 of file RewriteRule.h.

Referenced by translateEdits().


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