clang-tools
9.0.0
|
A LSP-specific comparator used to find diagnostic in a container like std:map. More...
#include <Protocol.h>
Public Member Functions | |
bool | operator() (const Diagnostic &LHS, const Diagnostic &RHS) const |
A LSP-specific comparator used to find diagnostic in a container like std:map.
We only use the required fields of Diagnostic to do the comparsion to avoid any regression issues from LSP clients (e.g. VScode), see https://git.io/vbr29
Definition at line 682 of file Protocol.h.
|
inline |
Definition at line 683 of file Protocol.h.
References clang::clangd::fromJSON(), clang::clangd::Diagnostic::message, and clang::clangd::Diagnostic::range.