From d25fb08a7521207de9776897f050031c2fe23f7e Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 29 Nov 2019 12:50:54 +0200 Subject: [PATCH] clang-format --- include/spdlog/details/log_msg-inl.h | 3 ++- tests/test_pattern_formatter.cpp | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/include/spdlog/details/log_msg-inl.h b/include/spdlog/details/log_msg-inl.h index 3b50fd42..0a0aed81 100644 --- a/include/spdlog/details/log_msg-inl.h +++ b/include/spdlog/details/log_msg-inl.h @@ -12,7 +12,8 @@ namespace spdlog { namespace details { -SPDLOG_INLINE log_msg::log_msg(spdlog::source_loc loc, string_view_t a_logger_name, spdlog::level::level_enum lvl, spdlog::string_view_t msg) +SPDLOG_INLINE log_msg::log_msg( + spdlog::source_loc loc, string_view_t a_logger_name, spdlog::level::level_enum lvl, spdlog::string_view_t msg) : logger_name(a_logger_name) , level(lvl) , time(os::now()) diff --git a/tests/test_pattern_formatter.cpp b/tests/test_pattern_formatter.cpp index 6aff454c..d9647f9b 100644 --- a/tests/test_pattern_formatter.cpp +++ b/tests/test_pattern_formatter.cpp @@ -193,19 +193,19 @@ TEST_CASE("center_padded_short", "[pattern_formatter]") TEST_CASE("left_padded_huge", "[pattern_formatter]") { REQUIRE(log_to_str("Some message", "[%-300n] %v", spdlog::pattern_time_type::local, "\n") == - "[pattern_tester ] Some message\n"); + "[pattern_tester ] Some message\n"); REQUIRE(log_to_str("Some message", "[%-300!n] %v", spdlog::pattern_time_type::local, "\n") == - "[pattern_tester ] Some message\n"); + "[pattern_tester ] Some message\n"); } TEST_CASE("left_padded_max", "[pattern_formatter]") { REQUIRE(log_to_str("Some message", "[%-64n] %v", spdlog::pattern_time_type::local, "\n") == - "[pattern_tester ] Some message\n"); + "[pattern_tester ] Some message\n"); REQUIRE(log_to_str("Some message", "[%-64!n] %v", spdlog::pattern_time_type::local, "\n") == - "[pattern_tester ] Some message\n"); + "[pattern_tester ] Some message\n"); } // Test padding + truncate flag @@ -231,7 +231,7 @@ TEST_CASE("paddinng_truncate_funcname", "[pattern_formatter]") { spdlog::sinks::test_sink_st test_sink; - const char* pattern = "%v [%5!!]"; + const char *pattern = "%v [%5!!]"; auto formatter = std::unique_ptr(new spdlog::pattern_formatter(pattern)); test_sink.set_formatter(std::move(formatter));