clang-tools 20.0.0git
Public Attributes | List of all members
clang::clangd::Fix Struct Reference

Represents a single fix-it that editor can apply to fix the error. More...

#include <Diagnostics.h>

Public Attributes

std::string Message
 Message for the fix-it.
 
llvm::SmallVector< TextEdit, 1 > Edits
 TextEdits from clang's fix-its. Must be non-empty.
 
llvm::SmallVector< std::pair< ChangeAnnotationIdentifier, ChangeAnnotation > > Annotations
 Annotations for the Edits.
 

Detailed Description

Represents a single fix-it that editor can apply to fix the error.

Definition at line 81 of file Diagnostics.h.

Member Data Documentation

◆ Annotations

llvm::SmallVector<std::pair<ChangeAnnotationIdentifier, ChangeAnnotation> > clang::clangd::Fix::Annotations

Annotations for the Edits.

Definition at line 89 of file Diagnostics.h.

◆ Edits

llvm::SmallVector<TextEdit, 1> clang::clangd::Fix::Edits

TextEdits from clang's fix-its. Must be non-empty.

Definition at line 85 of file Diagnostics.h.

◆ Message

std::string clang::clangd::Fix::Message

Message for the fix-it.

Definition at line 83 of file Diagnostics.h.

Referenced by clang::clangd::StoreDiags::take().


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