clang-format
This commit is contained in:
		@@ -48,7 +48,6 @@ SPDLOG_INLINE bool backtracer::enabled() const
 | 
			
		||||
    return enabled_.load(std::memory_order_relaxed);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
SPDLOG_INLINE void backtracer::push_back(const log_msg &msg)
 | 
			
		||||
{
 | 
			
		||||
    std::lock_guard<std::mutex> lock{mutex_};
 | 
			
		||||
 
 | 
			
		||||
@@ -73,7 +73,6 @@ public:
 | 
			
		||||
 | 
			
		||||
    void swap(spdlog::logger &other) SPDLOG_NOEXCEPT;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    template<typename... Args>
 | 
			
		||||
    void log(source_loc loc, level::level_enum lvl, string_view_t fmt, const Args &... args)
 | 
			
		||||
    {
 | 
			
		||||
@@ -150,7 +149,6 @@ public:
 | 
			
		||||
 | 
			
		||||
        details::log_msg log_msg(loc, name_, lvl, msg);
 | 
			
		||||
        log_it_(log_msg);
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    void log(level::level_enum lvl, string_view_t msg)
 | 
			
		||||
 
 | 
			
		||||
@@ -285,10 +285,12 @@ inline void critical(wstring_view_t fmt, const Args &... args)
 | 
			
		||||
// SPDLOG_LEVEL_OFF
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
#define SPDLOG_LOGGER_CALL(logger, level, ...) do {\
 | 
			
		||||
    if(logger->should_log(level) || logger->should_backtrace()) \
 | 
			
		||||
        logger->log(spdlog::source_loc{__FILE__, __LINE__, SPDLOG_FUNCTION}, level, __VA_ARGS__);\
 | 
			
		||||
    } while(0)
 | 
			
		||||
#define SPDLOG_LOGGER_CALL(logger, level, ...)                                                                                             \
 | 
			
		||||
    do                                                                                                                                     \
 | 
			
		||||
    {                                                                                                                                      \
 | 
			
		||||
        if (logger->should_log(level) || logger->should_backtrace())                                                                       \
 | 
			
		||||
            logger->log(spdlog::source_loc{__FILE__, __LINE__, SPDLOG_FUNCTION}, level, __VA_ARGS__);                                      \
 | 
			
		||||
    } while (0)
 | 
			
		||||
 | 
			
		||||
#if SPDLOG_ACTIVE_LEVEL <= SPDLOG_LEVEL_TRACE
 | 
			
		||||
#define SPDLOG_LOGGER_TRACE(logger, ...) SPDLOG_LOGGER_CALL(logger, spdlog::level::trace, __VA_ARGS__)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user