clang-tools  14.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::buildRenameEdit(), clang::clangd::error(), and main().

◆ log()

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

◆ 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.

◆ wrap() [1/2]

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

Definition at line 44 of file Logger.h.

◆ wrap() [2/2]

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

Definition at line 43 of file Logger.h.

Referenced by clang::clangd::TweakTest::apply(), and clang::clangd::error().