Apply clang-format

This commit is contained in:
Martchus 2023-12-19 21:32:05 +01:00
parent 303d0bd17b
commit f0761ed70e
3 changed files with 4 additions and 3 deletions

View File

@ -12,8 +12,8 @@
#include <cstring> #include <cstring>
#include <memory> #include <memory>
#include <set>
#include <regex> #include <regex>
#include <set>
namespace LibPkg { namespace LibPkg {

View File

@ -118,7 +118,8 @@ void Database::dumpDb(const std::optional<std::regex> &filterRegex)
} }
std::cout << "index (" << txn.size<0>() << "):\n"; std::cout << "index (" << txn.size<0>() << "):\n";
for (auto i = txn.begin<0>(); i != end; ++i) { for (auto i = txn.begin<0>(); i != end; ++i) {
if (const auto key = i.getKey().get<std::string_view>(); !filterRegex.has_value() || std::regex_match(key.cbegin(), key.cend(), filterRegex.value())) { if (const auto key = i.getKey().get<std::string_view>();
!filterRegex.has_value() || std::regex_match(key.cbegin(), key.cend(), filterRegex.value())) {
const auto value = i.getID(); const auto value = i.getID();
std::cout << key << ':' << ' ' << value << '\n'; std::cout << key << ':' << ' ' << value << '\n';
} }

View File

@ -45,8 +45,8 @@
#include <cstring> #include <cstring>
#include <filesystem> #include <filesystem>
#include <fstream> #include <fstream>
#include <string_view>
#include <regex> #include <regex>
#include <string_view>
#include <unordered_set> #include <unordered_set>
using namespace std; using namespace std;