From f0761ed70e72ea2dd27c14e69b254aed418e5bf7 Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 19 Dec 2023 21:32:05 +0100 Subject: [PATCH] Apply clang-format --- libpkg/data/config.h | 2 +- libpkg/data/database.cpp | 3 ++- librepomgr/serversetup.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libpkg/data/config.h b/libpkg/data/config.h index fac74df..a42f1ea 100644 --- a/libpkg/data/config.h +++ b/libpkg/data/config.h @@ -12,8 +12,8 @@ #include #include -#include #include +#include namespace LibPkg { diff --git a/libpkg/data/database.cpp b/libpkg/data/database.cpp index 0ac1c14..66d47f2 100644 --- a/libpkg/data/database.cpp +++ b/libpkg/data/database.cpp @@ -118,7 +118,8 @@ void Database::dumpDb(const std::optional &filterRegex) } std::cout << "index (" << txn.size<0>() << "):\n"; for (auto i = txn.begin<0>(); i != end; ++i) { - if (const auto key = i.getKey().get(); !filterRegex.has_value() || std::regex_match(key.cbegin(), key.cend(), filterRegex.value())) { + if (const auto key = i.getKey().get(); + !filterRegex.has_value() || std::regex_match(key.cbegin(), key.cend(), filterRegex.value())) { const auto value = i.getID(); std::cout << key << ':' << ' ' << value << '\n'; } diff --git a/librepomgr/serversetup.cpp b/librepomgr/serversetup.cpp index 71778b4..155577b 100644 --- a/librepomgr/serversetup.cpp +++ b/librepomgr/serversetup.cpp @@ -45,8 +45,8 @@ #include #include #include -#include #include +#include #include using namespace std;