clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: I2f0b9d0fb6e01ed36a2f34c750ba52de3b6d15d1
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 a5bbf9a..6efcab5 100644
--- a/redfish-core/lib/update_service.hpp
+++ b/redfish-core/lib/update_service.hpp
@@ -258,9 +258,9 @@
// Note that asyncResp can be either a valid pointer or nullptr. If nullptr
// then no asyncResp updates will occur
-inline void
- softwareInterfaceAdded(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
- sdbusplus::message_t& m, task::Payload&& payload)
+inline void softwareInterfaceAdded(
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+ sdbusplus::message_t& m, task::Payload&& payload)
{
dbus::utility::DBusInterfacesMap interfacesProperties;
@@ -349,9 +349,9 @@
}
}
-inline void
- handleUpdateErrorType(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
- const std::string& url, const std::string& type)
+inline void handleUpdateErrorType(
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, const std::string& url,
+ const std::string& type)
{
// NOLINTBEGIN(bugprone-branch-clone)
if (type == "xyz.openbmc_project.Software.Image.Error.UnTarFailure")
@@ -408,9 +408,9 @@
fwAvailableTimer = nullptr;
}
-inline void
- afterUpdateErrorMatcher(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
- const std::string& url, sdbusplus::message_t& m)
+inline void afterUpdateErrorMatcher(
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, const std::string& url,
+ sdbusplus::message_t& m)
{
dbus::utility::DBusInterfacesMap interfacesProperties;
sdbusplus::message::object_path objPath;
@@ -598,9 +598,9 @@
// 1) TransferProtocol:TFTP ImageURI:1.1.1.1/myfile.bin
// 2) ImageURI:tftp://1.1.1.1/myfile.bin
- if (!json_util::readJsonAction( //
- req, asyncResp->res, //
- "ImageURI", imageURI, //
+ if (!json_util::readJsonAction( //
+ req, asyncResp->res, //
+ "ImageURI", imageURI, //
"TransferProtocol", transferProtocol //
))
{
@@ -696,8 +696,8 @@
std::vector<std::string> targets;
};
-inline std::optional<std::string>
- processUrl(boost::system::result<boost::urls::url_view>& url)
+inline std::optional<std::string> processUrl(
+ boost::system::result<boost::urls::url_view>& url)
{
if (!url)
{
@@ -773,10 +773,10 @@
return std::nullopt;
}
- if (!json_util::readJsonObject( //
- *obj, asyncResp->res, //
+ if (!json_util::readJsonObject( //
+ *obj, asyncResp->res, //
"@Redfish.OperationApplyTime", multiRet.applyTime, //
- "Targets", tempTargets //
+ "Targets", tempTargets //
))
{
return std::nullopt;
@@ -979,9 +979,9 @@
}
}
-inline void
- updateMultipartContext(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
- const crow::Request& req, MultipartParser&& parser)
+inline void updateMultipartContext(
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+ const crow::Request& req, MultipartParser&& parser)
{
std::optional<MultiPartUpdateParameters> multipart =
extractMultipartUpdateParameters(asyncResp, std::move(parser));
@@ -1047,9 +1047,9 @@
}
}
-inline void
- handleUpdateServicePost(App& app, const crow::Request& req,
- const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
+inline void handleUpdateServicePost(
+ App& app, const crow::Request& req,
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
{
if (!redfish::setUpRedfishRoute(app, req, asyncResp))
{
@@ -1088,9 +1088,9 @@
}
}
-inline void
- handleUpdateServiceGet(App& app, const crow::Request& req,
- const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
+inline void handleUpdateServiceGet(
+ App& app, const crow::Request& req,
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
{
if (!redfish::setUpRedfishRoute(app, req, asyncResp))
{
@@ -1187,10 +1187,10 @@
}
}
-inline void
- getSoftwareVersion(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
- const std::string& service, const std::string& path,
- const std::string& swId)
+inline void getSoftwareVersion(
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+ const std::string& service, const std::string& path,
+ const std::string& swId)
{
dbus::utility::getAllProperties(
service, path, "xyz.openbmc_project.Software.Version",