clang-tools 20.0.0git
Public Attributes | List of all members
clang::clangd::DiagBase Struct Reference

Contains basic information about a diagnostic. More...

#include <Diagnostics.h>

Inheritance diagram for clang::clangd::DiagBase:
Inheritance graph
[legend]

Public Attributes

std::string Message
 
std::string File
 
std::optional< std::string > AbsFile
 
clangd::Range Range
 
DiagnosticsEngine::Level Severity = DiagnosticsEngine::Note
 
std::string Category
 
bool InsideMainFile = false
 
unsigned ID = 0
 
llvm::json::Object OpaqueData
 

Detailed Description

Contains basic information about a diagnostic.

Definition at line 58 of file Diagnostics.h.

Member Data Documentation

◆ AbsFile

std::optional<std::string> clang::clangd::DiagBase::AbsFile

Definition at line 64 of file Diagnostics.h.

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

◆ Category

std::string clang::clangd::DiagBase::Category

Definition at line 68 of file Diagnostics.h.

◆ File

std::string clang::clangd::DiagBase::File

Definition at line 62 of file Diagnostics.h.

◆ ID

unsigned clang::clangd::DiagBase::ID = 0

Definition at line 72 of file Diagnostics.h.

Referenced by clang::clangd::StoreDiags::take().

◆ InsideMainFile

bool clang::clangd::DiagBase::InsideMainFile = false

Definition at line 71 of file Diagnostics.h.

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

◆ Message

std::string clang::clangd::DiagBase::Message

◆ OpaqueData

llvm::json::Object clang::clangd::DiagBase::OpaqueData

Definition at line 76 of file Diagnostics.h.

◆ Range

clangd::Range clang::clangd::DiagBase::Range

◆ Severity

DiagnosticsEngine::Level clang::clangd::DiagBase::Severity = DiagnosticsEngine::Note

Definition at line 67 of file Diagnostics.h.

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


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