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

A range in a text document that links to an internal or external resource, like another text document or a web site. More...

#include <Protocol.h>

Public Attributes

Range range
 The range this link applies to.
URIForFile target
 The uri this link points to. If missing a resolve request is sent later.

Friends

bool operator== (const DocumentLink &LHS, const DocumentLink &RHS)
bool operator!= (const DocumentLink &LHS, const DocumentLink &RHS)

Detailed Description

A range in a text document that links to an internal or external resource, like another text document or a web site.

Definition at line 1938 of file Protocol.h.

◆ operator!=

bool operator!= ( const DocumentLink & LHS,
const DocumentLink & RHS )
friend

Definition at line 1956 of file Protocol.h.

◆ operator==

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

Definition at line 1952 of file Protocol.h.

References range, and target.

Member Data Documentation

◆ range

Range clang::clangd::DocumentLink::range

The range this link applies to.

Definition at line 1940 of file Protocol.h.

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

◆ target

URIForFile clang::clangd::DocumentLink::target

The uri this link points to. If missing a resolve request is sent later.

Definition at line 1943 of file Protocol.h.

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


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