From c83be63b9c96f78076372c9b6e27ad6e57b7e935 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 8 Aug 2025 10:49:43 +0100 Subject: [PATCH] style: clang-tidy auto fixes (#2411) --- benchmarks/util/log/LoggerBenchmark.cpp | 2 +- src/util/log/Logger.cpp | 2 +- tests/common/util/BinaryTestObject.cpp | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/benchmarks/util/log/LoggerBenchmark.cpp b/benchmarks/util/log/LoggerBenchmark.cpp index 8d932044..710d88c7 100644 --- a/benchmarks/util/log/LoggerBenchmark.cpp +++ b/benchmarks/util/log/LoggerBenchmark.cpp @@ -92,7 +92,7 @@ benchmarkConcurrentFileLogging(benchmark::State& state) threads.emplace_back([threadNum, messagesPerThread, &barrier]() { barrier.arrive_and_wait(); - Logger threadLogger("Thread_" + std::to_string(threadNum)); + Logger const threadLogger("Thread_" + std::to_string(threadNum)); for (size_t messageNum = 0; messageNum < messagesPerThread; ++messageNum) { LOG(threadLogger.info()) << "Test log message #" << messageNum; diff --git a/src/util/log/Logger.cpp b/src/util/log/Logger.cpp index 03b2e765..ee666b23 100644 --- a/src/util/log/Logger.cpp +++ b/src/util/log/Logger.cpp @@ -272,7 +272,7 @@ LogService::init(config::ClioConfigDefinition const& config) }; } } - FileLoggingParams params{ + FileLoggingParams const params{ .logDir = logDir.value(), .rotationSizeMB = config.get("log_rotation_size"), .dirMaxSizeMB = config.get("log_directory_max_size"), diff --git a/tests/common/util/BinaryTestObject.cpp b/tests/common/util/BinaryTestObject.cpp index 25ee516e..2d0aed03 100644 --- a/tests/common/util/BinaryTestObject.cpp +++ b/tests/common/util/BinaryTestObject.cpp @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include