clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: If4790d4928efc3e6690ca090aa79f0c7737c3683
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/dump_manager_bmc.cpp b/dump_manager_bmc.cpp
index f95683d..3ef3699 100644
--- a/dump_manager_bmc.cpp
+++ b/dump_manager_bmc.cpp
@@ -286,8 +286,8 @@
if ((std::filesystem::is_directory(p.path())) &&
std::all_of(idStr.begin(), idStr.end(), ::isdigit))
{
- lastEntryId =
- std::max(lastEntryId, static_cast<uint32_t>(std::stoul(idStr)));
+ lastEntryId = std::max(lastEntryId,
+ static_cast<uint32_t>(std::stoul(idStr)));
auto fileIt = std::filesystem::directory_iterator(p.path());
// Create dump entry d-bus object.
if (fileIt != std::filesystem::end(fileIt))
@@ -325,11 +325,12 @@
// Delete the first existing file until the space is enough
while (size < BMC_DUMP_MIN_SPACE_REQD)
{
- auto delEntry = min_element(
- entries.begin(), entries.end(),
- [](const auto& l, const auto& r) { return l.first < r.first; });
- auto delPath =
- std::filesystem::path(dumpDir) / std::to_string(delEntry->first);
+ auto delEntry = min_element(entries.begin(), entries.end(),
+ [](const auto& l, const auto& r) {
+ return l.first < r.first;
+ });
+ auto delPath = std::filesystem::path(dumpDir) /
+ std::to_string(delEntry->first);
size += getDirectorySize(delPath);