Skip to content

Commit 2f32243

Browse files
committed
chore: upgrade clang-format
1 parent 80f8fc2 commit 2f32243

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
stages: [pre-commit]
1111

1212
- repo: https://github.com/pre-commit/mirrors-clang-format
13-
rev: v16.0.4
13+
rev: v20.1.8
1414
hooks:
1515
- id: clang-format
1616
exclude: ^.*json$

aide/src/utils/systemmemory_lin.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ using aide::utils::SystemMemory;
66

77
std::optional<uint64_t> SystemMemory::getAvailableRAMInBytes()
88
{
9-
struct sysinfo info
10-
{
11-
};
9+
struct sysinfo info{};
1210
if (sysinfo(&info) == -1) { return std::nullopt; }
1311
return info.totalram;
1412
}

tests/ut/loggertest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace
3232

3333
TEST_CASE("Test different log levels", "[Logger]")
3434
{
35-
std::string const logFileNameStr{TEST_LOG_FILE_LOCATION +
35+
const std::string logFileNameStr{TEST_LOG_FILE_LOCATION +
3636
std::string("/aide_test.log")};
3737
const char* logFileName{logFileNameStr.c_str()};
3838

@@ -114,7 +114,7 @@ TEST_CASE("Test different log levels", "[Logger]")
114114
TEST_CASE("Test log macros", "[Logger]")
115115
{
116116
spdlog::drop_all();
117-
std::string const logFileNameStr =
117+
const std::string logFileNameStr =
118118
TEST_LOG_FILE_LOCATION + std::string("/aide_test.log");
119119
const char* logFileName{logFileNameStr.c_str()};
120120

0 commit comments

Comments
 (0)