From 6399e05209eb6bf9aec21719607defcc14203e04 Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 20 Jun 2019 01:05:57 +0300 Subject: [PATCH] clang-format --- src/spdlog.cpp | 10 +++++++--- tests/test_stdout_api.cpp | 2 -- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/spdlog.cpp b/src/spdlog.cpp index 2d22b2bf..63328d80 100644 --- a/src/spdlog.cpp +++ b/src/spdlog.cpp @@ -43,6 +43,9 @@ template class spdlog::sinks::rotating_file_sink; #include "spdlog/details/thread_pool-inl.h" template class spdlog::details::mpmc_blocking_queue; +// +// color sinks +// #ifdef _WIN32 #include "spdlog/sinks/wincolor_sink-inl.h" template class spdlog::sinks::wincolor_sink; @@ -61,7 +64,7 @@ template class spdlog::sinks::ansicolor_stderr_sink; #endif -// factory methods for color sinks +// factory methods for color loggers #include "spdlog/sinks/stdout_color_sinks-inl.h" template std::shared_ptr spdlog::stdout_color_mt( const std::string &logger_name, color_mode mode); @@ -77,8 +80,9 @@ template std::shared_ptr spdlog::stdout_color_st spdlog::stderr_color_mt(const std::string &logger_name, color_mode mode); template std::shared_ptr spdlog::stderr_color_st(const std::string &logger_name, color_mode mode); +// // stdout/stderr sinks - +// #include "spdlog/sinks/stdout_sinks-inl.h" template class spdlog::sinks::stdout_sink_base; @@ -90,7 +94,7 @@ template class spdlog::sinks::stdout_sink; template class spdlog::sinks::stderr_sink; template class spdlog::sinks::stderr_sink; -// factory methods +// factory methods for stdout/stderr loggers template std::shared_ptr spdlog::stdout_logger_mt(const std::string &logger_name); template std::shared_ptr spdlog::stdout_logger_st(const std::string &logger_name); template std::shared_ptr spdlog::stdout_logger_mt(const std::string &logger_name); diff --git a/tests/test_stdout_api.cpp b/tests/test_stdout_api.cpp index 75a6da13..8b33d420 100644 --- a/tests/test_stdout_api.cpp +++ b/tests/test_stdout_api.cpp @@ -22,7 +22,6 @@ TEST_CASE("stdout_mt", "[stdout]") spdlog::drop_all(); } - TEST_CASE("stderr_st", "[stderr]") { auto l = spdlog::stderr_logger_st("test"); @@ -60,7 +59,6 @@ TEST_CASE("stdout_color_mt", "[stdout]") spdlog::drop_all(); } - TEST_CASE("stderr_color_st", "[stderr]") { auto l = spdlog::stderr_color_st("test");