clang-tools 22.0.0git
clang::clangd::DocumentHighlight Struct Reference

A document highlight is a range inside a text document which deserves special attention. More...

#include <Protocol.h>

Public Attributes

Range range
 The range this highlight applies to.
DocumentHighlightKind kind = DocumentHighlightKind::Text
 The highlight kind, default is DocumentHighlightKind.Text.

Friends

bool operator< (const DocumentHighlight &LHS, const DocumentHighlight &RHS)
bool operator== (const DocumentHighlight &LHS, const DocumentHighlight &RHS)

Detailed Description

A document highlight is a range inside a text document which deserves special attention.

Usually a document highlight is visualized by changing the background color of its range.

Definition at line 1468 of file Protocol.h.

◆ operator<

bool operator< ( const DocumentHighlight & LHS,
const DocumentHighlight & RHS )
friend

Definition at line 1475 of file Protocol.h.

References kind, and range.

◆ operator==

bool operator== ( const DocumentHighlight & LHS,
const DocumentHighlight & RHS )
friend

Definition at line 1482 of file Protocol.h.

References kind, and range.

Member Data Documentation

◆ kind

DocumentHighlightKind clang::clangd::DocumentHighlight::kind = DocumentHighlightKind::Text

The highlight kind, default is DocumentHighlightKind.Text.

Definition at line 1473 of file Protocol.h.

Referenced by operator<, clang::clangd::operator<<(), operator==, and clang::clangd::toJSON().

◆ range

Range clang::clangd::DocumentHighlight::range

The range this highlight applies to.

Definition at line 1470 of file Protocol.h.

Referenced by operator<, clang::clangd::operator<<(), operator==, and clang::clangd::toJSON().


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