clang-tools 22.0.0git
clang::clangd::DiagnosticRelatedInformation Struct Reference

Represents a related message and source code location for a diagnostic. More...

#include <Protocol.h>

Public Attributes

Location location
 The location of this related diagnostic information.
std::string message
 The message of this related diagnostic information.

Detailed Description

Represents a related message and source code location for a diagnostic.

This should be used to point to code locations that cause or related to a diagnostics, e.g when duplicating a symbol in a scope.

Definition at line 902 of file Protocol.h.

Member Data Documentation

◆ location

Location clang::clangd::DiagnosticRelatedInformation::location

The location of this related diagnostic information.

Definition at line 904 of file Protocol.h.

Referenced by clang::clangd::toJSON(), and clang::clangd::toLSPDiags().

◆ message

std::string clang::clangd::DiagnosticRelatedInformation::message

The message of this related diagnostic information.

Definition at line 906 of file Protocol.h.

Referenced by clang::clangd::toJSON(), and clang::clangd::toLSPDiags().


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