clang-tools 20.0.0git
Public Attributes | Friends | List of all members
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.

Friends And Related Function Documentation

◆ 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.

◆ operator<=

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

Definition at line 176 of file Protocol.h.

◆ operator==

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

Definition at line 165 of file Protocol.h.

Member Data Documentation

◆ character

int clang::clangd::Position::character = 0

◆ line

int clang::clangd::Position::line = 0

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