nixd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lspserver::LSPDiagnosticCompare Struct Reference

#include <Protocol.h>

Public Member Functions

bool operator() (const Diagnostic &LHS, const Diagnostic &RHS) const
 

Detailed Description

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 comparison to avoid any regression issues from LSP clients (e.g. VScode), see https://git.io/vbr29

Definition at line 944 of file lspserver/include/lspserver/Protocol.h.

Member Function Documentation

◆ operator()()

bool lspserver::LSPDiagnosticCompare::operator() ( const Diagnostic & LHS,
const Diagnostic & RHS ) const
inline

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