clang-tools 20.0.0git
Functions
clang::clangd::detail Namespace Reference

Functions

const char * debugType (const char *Filename)
 
void logImpl (Logger::Level, const char *Fmt, const llvm::formatv_object_base &)
 
template<typename T >
T && wrap (T &&V)
 
decltype(fmt_consume(llvm::Error::success())) wrap (llvm::Error &&V)
 
template<typename... Ts>
void log (Logger::Level L, const char *Fmt, Ts &&... Vals)
 
llvm::Error error (std::error_code, std::string &&)
 

Function Documentation

◆ debugType()

const char * clang::clangd::detail::debugType ( const char *  Filename)

Definition at line 42 of file Logger.cpp.

References Filename.

◆ error()

llvm::Error clang::clangd::detail::error ( std::error_code  EC,
std::string &&  Msg 
)

Definition at line 80 of file Logger.cpp.

Referenced by clang::clangd::error().

◆ log()

template<typename... Ts>
void clang::clangd::detail::log ( Logger::Level  L,
const char *  Fmt,
Ts &&...  Vals 
)

Definition at line 47 of file Logger.h.

References logImpl(), and wrap().

Referenced by clang::clangd::elog(), clang::clangd::log(), and clang::clangd::vlog().

◆ logImpl()

void clang::clangd::detail::logImpl ( Logger::Level  Level,
const char *  Fmt,
const llvm::formatv_object_base &  Message 
)

Definition at line 31 of file Logger.cpp.

References clang::clangd::Logger::log().

Referenced by log().

◆ wrap() [1/2]

decltype(fmt_consume(llvm::Error::success())) clang::clangd::detail::wrap ( llvm::Error &&  V)
inline

Definition at line 43 of file Logger.h.

◆ wrap() [2/2]

template<typename T >
T && clang::clangd::detail::wrap ( T &&  V)

Definition at line 42 of file Logger.h.

Referenced by clang::clangd::error(), and log().