Apply clang-format
This commit is contained in:
parent
303d0bd17b
commit
f0761ed70e
|
@ -12,8 +12,8 @@
|
|||
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <regex>
|
||||
#include <set>
|
||||
|
||||
namespace LibPkg {
|
||||
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -45,8 +45,8 @@
|
|||
#include <cstring>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <string_view>
|
||||
#include <regex>
|
||||
#include <string_view>
|
||||
#include <unordered_set>
|
||||
|
||||
using namespace std;
|
||||
|
|
Loading…
Reference in New Issue