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 <memory>
#include <set>
#include <regex>
#include <set>
namespace LibPkg {

View File

@ -118,7 +118,8 @@ void Database::dumpDb(const std::optional<std::regex> &filterRegex)
}
std::cout << "index (" << txn.size<0>() << "):\n";
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();
std::cout << key << ':' << ' ' << value << '\n';
}

View File

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