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

#include <Diagnostics.h>

Collaboration diagram for clang::clangd::ClangdDiagnosticOptions:
Collaboration graph
[legend]

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. More...
 
bool EmitRelatedLocations = false
 If true, Clangd uses the relatedInformation field to include other locations (in particular attached notes). More...
 
bool SendDiagnosticCategory = false
 If true, Clangd uses an LSP extension to send the diagnostic's category to the client. More...
 
bool DisplayFixesCount = true
 If true, Clangd will add a number of available fixes to the diagnostic's message. More...
 

Detailed Description

Definition at line 39 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 57 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 42 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 47 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 53 of file Diagnostics.h.


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