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/virtual_media.hpp b/redfish-core/lib/virtual_media.hpp
index fbdcb94..fca6bba 100644
--- a/redfish-core/lib/virtual_media.hpp
+++ b/redfish-core/lib/virtual_media.hpp
@@ -92,10 +92,10 @@
const std::pair<sdbusplus::message::object_path,
dbus::utility::DBusInterfacesMap>&)>;
-inline void
- findAndParseObject(const std::string& service, const std::string& resName,
- const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
- CheckItemHandler&& handler)
+inline void findAndParseObject(
+ const std::string& service, const std::string& resName,
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+ CheckItemHandler&& handler)
{
sdbusplus::message::object_path path("/xyz/openbmc_project/VirtualMedia");
dbus::utility::getManagedObjects(
@@ -152,9 +152,9 @@
/**
* @brief Read all known properties from VM object interfaces
*/
-inline void
- vmParseInterfaceObject(const dbus::utility::DBusInterfacesMap& interfaces,
- const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
+inline void vmParseInterfaceObject(
+ const dbus::utility::DBusInterfacesMap& interfaces,
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
{
for (const auto& [interface, values] : interfaces)
{
@@ -308,12 +308,12 @@
});
}
-inline void
- afterGetVmData(const std::string& name, const std::string& /*service*/,
- const std::string& resName,
- const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
- const std::pair<sdbusplus::message::object_path,
- dbus::utility::DBusInterfacesMap>& item)
+inline void afterGetVmData(
+ const std::string& name, const std::string& /*service*/,
+ const std::string& resName,
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+ const std::pair<sdbusplus::message::object_path,
+ dbus::utility::DBusInterfacesMap>& item)
{
VmMode mode = parseObjectPathAndGetMode(item.first, resName);
if (mode == VmMode::Invalid)
@@ -368,8 +368,8 @@
* @brief Function extracts transfer protocol type from URI.
*
*/
-inline std::optional<TransferProtocol>
- getTransferProtocolFromUri(const boost::urls::url_view_base& imageUri)
+inline std::optional<TransferProtocol> getTransferProtocolFromUri(
+ const boost::urls::url_view_base& imageUri)
{
std::string_view scheme = imageUri.scheme();
if (scheme == "smb")
@@ -711,15 +711,15 @@
InsertMediaActionParams actionParams;
// Read obligatory parameters (url of image)
- if (!json_util::readJsonAction( //
- req, asyncResp->res, //
- "Image", actionParams.imageUrl, //
- "Inserted", actionParams.inserted, //
- "Password", actionParams.password, //
- "TransferMethod", actionParams.transferMethod, //
+ if (!json_util::readJsonAction( //
+ req, asyncResp->res, //
+ "Image", actionParams.imageUrl, //
+ "Inserted", actionParams.inserted, //
+ "Password", actionParams.password, //
+ "TransferMethod", actionParams.transferMethod, //
"TransferProtocolType", actionParams.transferProtocolType, //
- "UserName", actionParams.userName, //
- "WriteProtected", actionParams.writeProtected //
+ "UserName", actionParams.userName, //
+ "WriteProtected", actionParams.writeProtected //
))
{
return;
@@ -884,10 +884,10 @@
});
}
-inline void
- handleVirtualMediaGet(crow::App& app, const crow::Request& req,
- const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
- const std::string& name, const std::string& resName)
+inline void handleVirtualMediaGet(
+ crow::App& app, const crow::Request& req,
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+ const std::string& name, const std::string& resName)
{
if (!redfish::setUpRedfishRoute(app, req, asyncResp))
{