clang-tools 10.0.0

Public Attributes | List of all members
clang::clangd::ClangdDiagnosticOptions Struct Reference

`#include <Diagnostics.h>`

Collaboration diagram for clang::clangd::ClangdDiagnosticOptions:
[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 31 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 49 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 34 of file Diagnostics.h.

Referenced by clang::clangd::toLSPDiags().

## ◆ 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 39 of file Diagnostics.h.

Referenced by clang::clangd::toLSPDiags().

## ◆ 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 45 of file Diagnostics.h.

Referenced by clang::clangd::toLSPDiags().

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

- Diagnostics.h