clang-tools 20.0.0git
|
#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) |
Definition at line 156 of file Protocol.h.
Definition at line 169 of file Protocol.h.
Definition at line 172 of file Protocol.h.
Definition at line 176 of file Protocol.h.
Definition at line 165 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 163 of file Protocol.h.
Referenced by clang::clangd::fromJSON(), llvm::DenseMapInfo< clang::clangd::Range >::getHashValue(), clang::clangd::getInactiveRegions(), clang::clangd::SymbolCollector::handleMacros(), clang::clangd::operator<<(), clang::clangd::positionToOffset(), clang::clangd::sourceLocToPosition(), clang::clangd::toJSON(), clang::clangd::config::toPosition(), and clang::clangd::toSemanticTokens().
int clang::clangd::Position::line = 0 |
Line position in a document (zero-based).
Definition at line 158 of file Protocol.h.
Referenced by clang::clangd::buildRenameEdit(), clang::clangd::fromJSON(), llvm::DenseMapInfo< clang::clangd::Range >::getHashValue(), clang::clangd::getInactiveRegions(), clang::clangd::SymbolCollector::handleMacros(), clang::clangd::operator<<(), clang::clangd::positionToOffset(), clang::clangd::sourceLocToPosition(), clang::clangd::toJSON(), clang::clangd::config::toPosition(), and clang::clangd::toSemanticTokens().