clang-format

This commit is contained in:
gabime
2020-04-10 15:35:58 +03:00
parent 9ba7fc94a5
commit a8169a3d6b
7 changed files with 11 additions and 11 deletions

View File

@@ -113,7 +113,7 @@ static void test_rotate(int days_to_run, uint16_t max_days, uint16_t expected_n_
using spdlog::log_clock;
using spdlog::details::log_msg;
using spdlog::sinks::daily_file_sink_st;
prepare_logdir();
std::string basename = "test_logs/daily_rotate.txt";

View File

@@ -86,7 +86,7 @@ TEST_CASE("full_queue", "[mpmc_blocking_q]")
spdlog::details::mpmc_blocking_queue<int> q(q_size);
for (int i = 0; i < static_cast<int>(q_size); i++)
{
q.enqueue(i+0); // i+0 to force rvalue and avoid tidy warnings on the same time if we std::move(i) instead
q.enqueue(i + 0); // i+0 to force rvalue and avoid tidy warnings on the same time if we std::move(i) instead
}
q.enqueue_nowait(123456);

View File

@@ -308,7 +308,7 @@ TEST_CASE("clone-formatter-2", "[pattern_formatter]")
class custom_test_flag : public spdlog::custom_flag_formatter
{
public:
explicit custom_test_flag(std::string txt)
explicit custom_test_flag(std::string txt)
: some_txt{std::move(txt)}
{}
@@ -359,7 +359,7 @@ TEST_CASE("clone-custom_formatter", "[pattern_formatter]")
#ifdef _WIN32
static const char *const test_path = "\\a\\b\\myfile.cpp";
#else
static const char * const test_path = "/a/b//myfile.cpp";
static const char *const test_path = "/a/b//myfile.cpp";
#endif
TEST_CASE("short filename formatter-1", "[pattern_formatter]")

View File

@@ -1,7 +1,7 @@
#include "includes.h"
static const char * const tested_logger_name = "null_logger";
static const char * const tested_logger_name2 = "null_logger2";
static const char *const tested_logger_name = "null_logger";
static const char *const tested_logger_name2 = "null_logger2";
#ifndef SPDLOG_NO_EXCEPTIONS
TEST_CASE("register_drop", "[registry]")