clang-tools 22.0.0git
|
#include <SymbolID.h>
Public Member Functions | |
SymbolID ()=default | |
SymbolID (llvm::StringRef USR) | |
bool | operator== (const SymbolID &Sym) const |
bool | operator!= (const SymbolID &Sym) const |
bool | operator< (const SymbolID &Sym) const |
llvm::StringRef | raw () const |
std::string | str () const |
bool | isNull () const |
operator bool () const |
Static Public Member Functions | |
static SymbolID | fromRaw (llvm::StringRef) |
static llvm::Expected< SymbolID > | fromStr (llvm::StringRef) |
Static Public Attributes | |
static constexpr size_t | RawSize = 8 |
Definition at line 32 of file SymbolID.h.
|
default |
Referenced by fromRaw(), isNull(), operator!=(), operator<(), and operator==().
|
explicit |
Definition at line 17 of file SymbolID.cpp.
References RawSize.
|
static |
Definition at line 28 of file SymbolID.cpp.
References RawSize, and SymbolID().
Referenced by fromStr().
|
static |
Definition at line 37 of file SymbolID.cpp.
References clang::clangd::error(), fromRaw(), and RawSize.
Referenced by clang::clangd::fromJSON(), clang::clangd::remote::Marshaller::fromProtobuf(), clang::clangd::remote::Marshaller::fromProtobuf(), clang::clangd::remote::Marshaller::fromProtobuf(), clang::clangd::remote::Marshaller::fromProtobuf(), clang::clangd::remote::Marshaller::fromProtobuf(), clang::clangd::incomingCalls(), and clang::clangd::outgoingCalls().
|
inline |
|
inlineexplicit |
Definition at line 58 of file SymbolID.h.
References isNull().
|
inline |
Definition at line 40 of file SymbolID.h.
References SymbolID().
|
inline |
Definition at line 41 of file SymbolID.h.
References SymbolID().
|
inline |
Definition at line 37 of file SymbolID.h.
References SymbolID().
llvm::StringRef clang::clangd::SymbolID::raw | ( | ) | const |
Definition at line 23 of file SymbolID.cpp.
References RawSize.
Referenced by clang::clangd::hash_value(), clang::clangd::operator<<(), and str().
std::string clang::clangd::SymbolID::str | ( | ) | const |
Definition at line 35 of file SymbolID.cpp.
References raw().
Referenced by clang::clangd::symbolToCallHierarchyItem(), clang::clangd::toJSON(), clang::clangd::remote::Marshaller::toProtobuf(), clang::clangd::remote::Marshaller::toProtobuf(), clang::clangd::remote::Marshaller::toProtobuf(), clang::clangd::remote::Marshaller::toProtobuf(), clang::clangd::remote::Marshaller::toProtobuf(), and clang::clangd::remote::Marshaller::toProtobuf().
|
staticconstexpr |
Definition at line 49 of file SymbolID.h.
Referenced by fromRaw(), fromStr(), clang::clangd::hash_value(), raw(), and SymbolID().