9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_SYMBOL_LOCATION_H 10 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_SYMBOL_LOCATION_H 12 #include "llvm/ADT/StringRef.h" 13 #include "llvm/Support/raw_ostream.h" 35 uint32_t
line()
const {
return Line; }
37 uint32_t
column()
const {
return Column; }
43 static constexpr uint32_t
MaxLine = (1 << 20) - 1;
44 static constexpr uint32_t
MaxColumn = (1 << 12) - 1;
55 explicit operator bool()
const {
return !llvm::StringRef(
FileURI).empty(); }
68 return std::make_tuple(L.
line(), L.
column()) ==
94 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_SYMBOL_LOCATION_H void setColumn(uint32_t Column)
void setLine(uint32_t Line)
bool operator<(const Ref &L, const Ref &R)
static constexpr uint32_t MaxColumn
bool operator==(const Ref &L, const Ref &R)
static constexpr uint32_t MaxLine
Position Start
The symbol range, using half-open range [Start, End).
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const CodeCompletion &C)