clang-tools
11.0.0
|
#include <Protocol.h>
Public Attributes | |
int | line = 0 |
Line position in a document (zero-based). More... | |
int | character = 0 |
Character offset on a line in a document (zero-based). More... | |
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) |
Definition at line 144 of file Protocol.h.
Definition at line 157 of file Protocol.h.
Definition at line 160 of file Protocol.h.
Definition at line 164 of file Protocol.h.
Definition at line 153 of file Protocol.h.
int clang::clangd::Position::character = 0 |
Character offset on a line in a document (zero-based).
WARNING: this is in UTF-16 codepoints, not bytes or characters! Use the functions in SourceCode.h to construct/interpret Positions.
Definition at line 151 of file Protocol.h.
Referenced by clang::clangd::offsetToPosition(), clang::clangd::operator<<(), and clang::clangd::positionToOffset().
int clang::clangd::Position::line = 0 |
Line position in a document (zero-based).
Definition at line 146 of file Protocol.h.
Referenced by clang::clangd::buildRenameEdit(), clang::clangd::offsetToPosition(), clang::clangd::operator<<(), and clang::clangd::positionToOffset().