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

#include <Diagnostics.h>

Public Attributes

bool EmbedFixesInDiagnostics = false
 If true, Clangd uses an LSP extension to embed the fixes with the diagnostics that are sent to the client.
 
bool EmitRelatedLocations = false
 If true, Clangd uses the relatedInformation field to include other locations (in particular attached notes).
 
bool SendDiagnosticCategory = false
 If true, Clangd uses an LSP extension to send the diagnostic's category to the client.
 
bool DisplayFixesCount = true
 If true, Clangd will add a number of available fixes to the diagnostic's message.
 

Detailed Description

Definition at line 36 of file Diagnostics.h.

Member Data Documentation

◆ DisplayFixesCount

bool clang::clangd::ClangdDiagnosticOptions::DisplayFixesCount = true

If true, Clangd will add a number of available fixes to the diagnostic's message.

Definition at line 54 of file Diagnostics.h.

◆ EmbedFixesInDiagnostics

bool clang::clangd::ClangdDiagnosticOptions::EmbedFixesInDiagnostics = false

If true, Clangd uses an LSP extension to embed the fixes with the diagnostics that are sent to the client.

Definition at line 39 of file Diagnostics.h.

◆ EmitRelatedLocations

bool clang::clangd::ClangdDiagnosticOptions::EmitRelatedLocations = false

If true, Clangd uses the relatedInformation field to include other locations (in particular attached notes).

Otherwise, these are flattened into the diagnostic message.

Definition at line 44 of file Diagnostics.h.

◆ SendDiagnosticCategory

bool clang::clangd::ClangdDiagnosticOptions::SendDiagnosticCategory = false

If true, Clangd uses an LSP extension to send the diagnostic's category to the client.

The category typically describes the compilation stage during which the issue was produced, e.g. "Semantic Issue" or "Parse Issue".

Definition at line 50 of file Diagnostics.h.


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