19std::pair<Position, llvm::StringRef>
21 auto [BasePoint,
Payload] = Base::pointWithPayload(
Name);
26 auto BasePoints = Base::points(
Name);
28 std::vector<Position> Ps;
29 Ps.reserve(BasePoints.size());
30 for (
const auto Point : BasePoints)
36std::vector<std::pair<Position, llvm::StringRef>>
38 auto BasePoints = Base::pointsWithPayload(
Name);
40 std::vector<std::pair<Position, llvm::StringRef>> Ps;
41 Ps.reserve(BasePoints.size());
42 for (
const auto &[Point,
Payload] : BasePoints)
49 llvm::Annotations::Range R) {
60std::pair<clangd::Range, llvm::StringRef>
62 auto [BaseRange,
Payload] = Base::rangeWithPayload(
Name);
67 auto OffsetRanges = Base::ranges(
Name);
69 std::vector<clangd::Range> Rs;
70 Rs.reserve(OffsetRanges.size());
71 for (
const auto &R : OffsetRanges)
77std::vector<std::pair<clangd::Range, llvm::StringRef>>
79 auto OffsetRanges = Base::rangesWithPayload(
Name);
81 std::vector<std::pair<clangd::Range, llvm::StringRef>> Rs;
82 Rs.reserve(OffsetRanges.size());
83 for (
const auto &[R,
Payload] : OffsetRanges)
llvm::SmallString< 256U > Name
clangd::Range range(llvm::StringRef Name="") const
std::vector< Position > points(llvm::StringRef Name="") const
std::vector< clangd::Range > ranges(llvm::StringRef Name="") const
std::vector< std::pair< Position, llvm::StringRef > > pointsWithPayload(llvm::StringRef Name="") const
Position point(llvm::StringRef Name="") const
std::pair< clangd::Range, llvm::StringRef > rangeWithPayload(llvm::StringRef Name="") const
std::vector< std::pair< clangd::Range, llvm::StringRef > > rangesWithPayload(llvm::StringRef Name="") const
std::pair< Position, llvm::StringRef > pointWithPayload(llvm::StringRef Name="") const
Position offsetToPosition(llvm::StringRef Code, size_t Offset)
Turn an offset in Code into a [line, column] pair.
static clangd::Range toLSPRange(llvm::StringRef Code, llvm::Annotations::Range R)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Position start
The range's start position.
Position end
The range's end position.