clang-tools 22.0.0git
clang::clangd::SymbolID Class Reference

#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< SymbolIDfromStr (llvm::StringRef)

Static Public Attributes

static constexpr size_t RawSize = 8

Detailed Description

Definition at line 32 of file SymbolID.h.

Constructor & Destructor Documentation

◆ SymbolID() [1/2]

clang::clangd::SymbolID::SymbolID ( )
default

◆ SymbolID() [2/2]

clang::clangd::SymbolID::SymbolID ( llvm::StringRef USR)
explicit

Definition at line 17 of file SymbolID.cpp.

References RawSize.

Member Function Documentation

◆ fromRaw()

SymbolID clang::clangd::SymbolID::fromRaw ( llvm::StringRef Raw)
static

Definition at line 28 of file SymbolID.cpp.

References RawSize, and SymbolID().

Referenced by fromStr().

◆ fromStr()

◆ isNull()

bool clang::clangd::SymbolID::isNull ( ) const
inline

Definition at line 57 of file SymbolID.h.

References SymbolID().

Referenced by operator bool().

◆ operator bool()

clang::clangd::SymbolID::operator bool ( ) const
inlineexplicit

Definition at line 58 of file SymbolID.h.

References isNull().

◆ operator!=()

bool clang::clangd::SymbolID::operator!= ( const SymbolID & Sym) const
inline

Definition at line 40 of file SymbolID.h.

References SymbolID().

◆ operator<()

bool clang::clangd::SymbolID::operator< ( const SymbolID & Sym) const
inline

Definition at line 41 of file SymbolID.h.

References SymbolID().

◆ operator==()

bool clang::clangd::SymbolID::operator== ( const SymbolID & Sym) const
inline

Definition at line 37 of file SymbolID.h.

References SymbolID().

◆ raw()

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().

◆ str()

Member Data Documentation

◆ RawSize

size_t clang::clangd::SymbolID::RawSize = 8
staticconstexpr

Definition at line 49 of file SymbolID.h.

Referenced by fromRaw(), fromStr(), clang::clangd::hash_value(), raw(), and SymbolID().


The documentation for this class was generated from the following files: