Go to the documentation of this file.
22 std::vector<Position> Ps;
42 auto OffsetRanges = Base::ranges(
Name);
44 std::vector<clangd::Range> Rs;
45 Rs.reserve(OffsetRanges.size());
CharSourceRange Range
SourceRange for the file name.
std::vector< clangd::Range > ranges(llvm::StringRef Name="") const
Position start
The range's start position.
std::vector< Position > points(llvm::StringRef Name="") const
static clangd::Range toLSPRange(llvm::StringRef Code, Annotations::Range R)
clangd::Range range(llvm::StringRef Name="") const
Position point(llvm::StringRef Name="") const
Position end
The range's end position.
Position offsetToPosition(llvm::StringRef Code, size_t Offset)
Turn an offset in Code into a [line, column] pair.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
std::pair< unsigned, unsigned > Offsets