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

#include <Protocol.h>

Public Attributes

int line = 0
 Line position in a document (zero-based).
int character = 0
 Character offset on a line in a document (zero-based).

Friends

bool operator== (const Position &LHS, const Position &RHS)
bool operator!= (const Position &LHS, const Position &RHS)
bool operator< (const Position &LHS, const Position &RHS)
bool operator<= (const Position &LHS, const Position &RHS)

Detailed Description

Definition at line 156 of file Protocol.h.

◆ operator!=

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

Definition at line 169 of file Protocol.h.

◆ operator<

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

Definition at line 172 of file Protocol.h.

References character, and line.

◆ operator<=

bool operator<= ( const Position & LHS,
const Position & RHS )
friend

Definition at line 176 of file Protocol.h.

References character, and line.

◆ operator==

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

Definition at line 165 of file Protocol.h.

References character, and line.

Member Data Documentation

◆ character

◆ line


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