clang-tools  14.0.0git
Public Types | Public Attributes | List of all members
clang::clangd::Diag Struct Reference

A top-level diagnostic that may have Notes and Fixes. More...

#include <Diagnostics.h>

Inheritance diagram for clang::clangd::Diag:
Inheritance graph
[legend]
Collaboration diagram for clang::clangd::Diag:
Collaboration graph
[legend]

Public Types

enum  DiagSource { Unknown, Clang, ClangTidy, ClangdConfig }
 

Public Attributes

std::string Name
 
enum clang::clangd::Diag::DiagSource Source = Unknown
 
std::vector< NoteNotes
 Elaborate on the problem, usually pointing to a related piece of code. More...
 
std::vector< FixFixes
 Alternative fixes for this diagnostic, one should be chosen. More...
 
llvm::SmallVector< DiagnosticTag, 1 > Tags
 
- Public Attributes inherited from clang::clangd::DiagBase
std::string Message
 
std::string File
 
llvm::Optional< std::string > AbsFile
 
clangd::Range Range
 
DiagnosticsEngine::Level Severity = DiagnosticsEngine::Note
 
std::string Category
 
bool InsideMainFile = false
 
unsigned ID
 
llvm::json::Object OpaqueData
 

Detailed Description

A top-level diagnostic that may have Notes and Fixes.

Definition at line 97 of file Diagnostics.h.

Member Enumeration Documentation

◆ DiagSource

Enumerator
Unknown 
Clang 
ClangTidy 
ClangdConfig 

Definition at line 100 of file Diagnostics.h.

Member Data Documentation

◆ Fixes

std::vector<Fix> clang::clangd::Diag::Fixes

Alternative fixes for this diagnostic, one should be chosen.

Definition at line 109 of file Diagnostics.h.

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

◆ Name

std::string clang::clangd::Diag::Name

Definition at line 98 of file Diagnostics.h.

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

◆ Notes

std::vector<Note> clang::clangd::Diag::Notes

Elaborate on the problem, usually pointing to a related piece of code.

Definition at line 107 of file Diagnostics.h.

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

◆ Source

enum clang::clangd::Diag::DiagSource clang::clangd::Diag::Source = Unknown

◆ Tags

llvm::SmallVector<DiagnosticTag, 1> clang::clangd::Diag::Tags

Definition at line 110 of file Diagnostics.h.


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