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/chassis.hpp b/redfish-core/lib/chassis.hpp
index 0d14d4e..469c903 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -85,7 +85,7 @@
asyncResp->res.jsonValue["Links"]["Storage@odata.count"] =
storages.size();
asyncResp->res.jsonValue["Links"]["Storage"] = std::move(storages);
- });
+ });
}
/**
@@ -131,7 +131,7 @@
asyncResp->res.jsonValue["PowerState"] = "Off";
asyncResp->res.jsonValue["Status"]["State"] = "StandbyOffline";
}
- });
+ });
}
inline void getIntrusionByService(std::shared_ptr<bmcweb::AsyncResp> asyncResp,
@@ -156,7 +156,7 @@
asyncResp->res.jsonValue["PhysicalSecurity"]["IntrusionSensorNumber"] =
1;
asyncResp->res.jsonValue["PhysicalSecurity"]["IntrusionSensor"] = value;
- });
+ });
}
/**
@@ -189,7 +189,7 @@
return;
}
}
- });
+ });
}
inline void handleChassisCollectionGet(
@@ -341,7 +341,7 @@
asyncResp->res.jsonValue["Location"]["PartLocation"]["ServiceLabel"] =
property;
- });
+ });
}
inline void getChassisUUID(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
@@ -360,7 +360,7 @@
return;
}
asyncResp->res.jsonValue["UUID"] = chassisUUID;
- });
+ });
}
inline void
@@ -418,7 +418,7 @@
return; // no sensors = no failures
}
health->inventory = resp;
- });
+ });
health->populate();
}
@@ -459,7 +459,7 @@
reference["@odata.id"] = boost::urls::format(
"/redfish/v1/Chassis/{}/Drives", chassisId);
asyncResp->res.jsonValue["Drives"] = std::move(reference);
- });
+ });
const std::string& connectionName = connectionNames[0].first;
@@ -491,7 +491,7 @@
return;
}
asyncResp->res.jsonValue["AssetTag"] = property;
- });
+ });
}
else if (interface == replaceableInterface)
{
@@ -510,7 +510,7 @@
return;
}
asyncResp->res.jsonValue["HotPluggable"] = property;
- });
+ });
}
}
@@ -620,7 +620,7 @@
std::move(managedBy);
getChassisState(asyncResp);
getStorageLink(asyncResp, path);
- });
+ });
for (const auto& interface : interfaces2)
{
@@ -640,7 +640,7 @@
// Couldn't find an object with that name. return an error
messages::resourceNotFound(asyncResp->res, "Chassis", chassisId);
- });
+ });
getPhysicalSecurityData(asyncResp);
}
@@ -765,7 +765,7 @@
}
messages::resourceNotFound(asyncResp->res, "Chassis", chassisId);
- });
+ });
}
/**
@@ -864,8 +864,8 @@
}
messages::success(asyncResp->res);
- });
});
+ });
}
inline void handleChassisResetActionInfoPost(