10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_SYMBOLID_H 11 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_SYMBOLID_H 13 #include "llvm/ADT/Hashing.h" 14 #include "llvm/ADT/StringRef.h" 15 #include "llvm/Support/Error.h" 16 #include "llvm/Support/raw_ostream.h" 34 explicit SymbolID(llvm::StringRef USR);
37 return HashValue == Sym.HashValue;
40 return HashValue < Sym.HashValue;
46 llvm::StringRef
raw()
const;
50 std::string
str()
const;
51 static llvm::Expected<SymbolID>
fromStr(llvm::StringRef);
54 std::array<uint8_t, RawSize> HashValue;
65 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_SYMBOLID_H
static SymbolID fromRaw(llvm::StringRef)
static llvm::Expected< SymbolID > fromStr(llvm::StringRef)
static constexpr size_t RawSize
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::StringRef raw() const
bool operator<(const SymbolID &Sym) const
llvm::hash_code hash_value(const SymbolID &ID)
llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const CodeCompletion &C)
bool operator==(const SymbolID &Sym) const