clang-format: copy latest and re-format
clang-format-17 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: I2f9540cf0d545a2da4d6289fc87b754f684bc9a7
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 caaa694..2f0cc47 100644
--- a/redfish-core/lib/update_service.hpp
+++ b/redfish-core/lib/update_service.hpp
@@ -74,7 +74,7 @@
BMCWEB_LOG_DEBUG("error_code = {}", ec);
BMCWEB_LOG_DEBUG("error msg = {}", ec.message());
}
- });
+ });
}
// Note that asyncResp can be either a valid pointer or nullptr. If nullptr
@@ -248,7 +248,7 @@
// unless it is an error
return !task::completed;
- },
+ },
"type='signal',interface='org.freedesktop.DBus.Properties',"
"member='PropertiesChanged',path='" +
objPath.str + "'");
@@ -257,7 +257,7 @@
task->payload.emplace(std::move(payload));
}
fwUpdateInProgress = false;
- });
+ });
break;
}
@@ -549,13 +549,13 @@
{
BMCWEB_LOG_DEBUG("Call to DownloaViaTFTP Success");
}
- },
+ },
"xyz.openbmc_project.Software.Download",
"/xyz/openbmc_project/software", "xyz.openbmc_project.Common.TFTP",
"DownloadViaTFTP", fwFile, tftpServer);
BMCWEB_LOG_DEBUG("Exit UpdateService.SimpleUpdate doPost");
- });
+ });
}
inline void uploadImageFile(crow::Response& res, std::string_view body)
@@ -607,14 +607,14 @@
"/xyz/openbmc_project/software/apply_time",
"xyz.openbmc_project.Software.ApplyTime", "RequestedApplyTime",
applyTimeNewVal, [asyncResp](const boost::system::error_code& ec) {
- if (ec)
- {
- BMCWEB_LOG_ERROR("D-Bus responses error: {}", ec);
- messages::internalError(asyncResp->res);
- return;
- }
- messages::success(asyncResp->res);
- });
+ if (ec)
+ {
+ BMCWEB_LOG_ERROR("D-Bus responses error: {}", ec);
+ messages::internalError(asyncResp->res);
+ return;
+ }
+ messages::success(asyncResp->res);
+ });
}
inline void
@@ -816,8 +816,8 @@
["HttpPushUriApplyTime"]["ApplyTime"] =
"OnReset";
}
- });
});
+ });
BMCWEB_ROUTE(app, "/redfish/v1/UpdateService/")
.privileges(redfish::privileges::patchUpdateService)
.methods(boost::beast::http::verb::patch)(
@@ -860,7 +860,7 @@
}
}
}
- });
+ });
BMCWEB_ROUTE(app, "/redfish/v1/UpdateService/update/")
.privileges(redfish::privileges::postUpdateService)
@@ -891,7 +891,7 @@
asyncResp,
boost::urls::url("/redfish/v1/UpdateService/FirmwareInventory"),
iface, "/xyz/openbmc_project/software");
- });
+ });
}
/* Fill related item links (i.e. bmc, bios) in for inventory */
inline static void
@@ -991,7 +991,7 @@
std::string formatDesc = swInvPurpose->substr(endDesc);
asyncResp->res.jsonValue["Description"] = formatDesc + " image";
getRelatedItems(asyncResp, *swInvPurpose);
- });
+ });
}
inline void requestRoutesSoftwareInventory(App& app)
@@ -1065,8 +1065,8 @@
asyncResp->res.jsonValue["Updateable"] = false;
sw_util::getSwUpdatableStatus(asyncResp, swId);
- });
});
+ });
}
} // namespace redfish