clang-tools 20.0.0git
Public Attributes | List of all members
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 888 of file Protocol.h.

Member Data Documentation

◆ location

Location clang::clangd::DiagnosticRelatedInformation::location

The location of this related diagnostic information.

Definition at line 890 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 892 of file Protocol.h.

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


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