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: I75f89d2959b0f1338c20d72ad669fbdc1d720835
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/redfish-core/lib/update_service.hpp b/redfish-core/lib/update_service.hpp
index 650ba95..59b2b3b 100644
--- a/redfish-core/lib/update_service.hpp
+++ b/redfish-core/lib/update_service.hpp
@@ -212,7 +212,6 @@
iface ==
"xyz.openbmc_project.Software.ActivationProgress")
{
-
const uint8_t* progress = nullptr;
for (const auto& property : values)
{
@@ -538,8 +537,8 @@
std::ofstream out(filepath, std::ofstream::out | std::ofstream::binary |
std::ofstream::trunc);
// set the permission of the file to 640
- std::filesystem::perms permission =
- std::filesystem::perms::owner_read | std::filesystem::perms::group_read;
+ std::filesystem::perms permission = std::filesystem::perms::owner_read |
+ std::filesystem::perms::group_read;
std::filesystem::permissions(filepath, permission);
out << body;
@@ -616,7 +615,7 @@
continue;
}
- for (auto const& param :
+ for (const auto& param :
boost::beast::http::param_list{it->value().substr(index)})
{
if (param.first != "name" || param.second.empty())