LLVM 22.0.0git
llvm::lsp::DiagnosticRelatedInformation Struct Reference

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

#include "llvm/Support/LSP/Protocol.h"

Public Member Functions

 DiagnosticRelatedInformation ()=default
 DiagnosticRelatedInformation (Location location, std::string message)

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 657 of file Protocol.h.

Constructor & Destructor Documentation

◆ DiagnosticRelatedInformation() [1/2]

llvm::lsp::DiagnosticRelatedInformation::DiagnosticRelatedInformation ( )
default

◆ DiagnosticRelatedInformation() [2/2]

llvm::lsp::DiagnosticRelatedInformation::DiagnosticRelatedInformation ( Location location,
std::string message )
inline

Definition at line 659 of file Protocol.h.

References location, message, and llvm::move().

Member Data Documentation

◆ location

Location llvm::lsp::DiagnosticRelatedInformation::location

The location of this related diagnostic information.

Definition at line 663 of file Protocol.h.

Referenced by DiagnosticRelatedInformation().

◆ message

std::string llvm::lsp::DiagnosticRelatedInformation::message

The message of this related diagnostic information.

Definition at line 665 of file Protocol.h.

Referenced by DiagnosticRelatedInformation().


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