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/sensors.hpp b/redfish-core/lib/sensors.hpp
index 0772da5..e04eac6 100644
--- a/redfish-core/lib/sensors.hpp
+++ b/redfish-core/lib/sensors.hpp
@@ -756,8 +756,8 @@
}
sensorJson["Status"]["State"] = getState(inventoryItem);
- sensorJson["Status"]["Health"] =
- getHealth(sensorJson, propertiesDict, inventoryItem);
+ sensorJson["Status"]["Health"] = getHealth(sensorJson, propertiesDict,
+ inventoryItem);
// Parameter to set to override the type we get from dbus, and force it to
// int, regardless of what is available. This is used for schemas like fan,
@@ -959,7 +959,6 @@
const dbus::utility::DBusInteracesMap& interfacesDict,
nlohmann::json& sensorJson, InventoryItem* inventoryItem)
{
-
for (const auto& [interface, valuesDict] : interfacesDict)
{
objectPropertiesToJson(sensorName, sensorType, chassisSubNode,
@@ -1113,10 +1112,10 @@
}
}
- size_t minNumNeeded =
- collection->empty()
- ? 0
- : collection->size() - *allowedFailures;
+ size_t minNumNeeded = collection->empty()
+ ? 0
+ : collection->size() -
+ *allowedFailures;
nlohmann::json& jResp = sensorsAsyncResp->asyncResp->res
.jsonValue["Redundancy"];
@@ -1262,8 +1261,8 @@
const std::string& invItemObjPath, const std::string& sensorObjPath)
{
// Look for inventory item in vector
- InventoryItem* inventoryItem =
- findInventoryItem(inventoryItems, invItemObjPath);
+ InventoryItem* inventoryItem = findInventoryItem(inventoryItems,
+ invItemObjPath);
// If inventory item doesn't exist in vector, add it
if (inventoryItem == nullptr)
@@ -1456,8 +1455,8 @@
static_cast<const std::string&>(objDictEntry.first);
// If this object path is one of the specified inventory items
- InventoryItem* inventoryItem =
- findInventoryItem(inventoryItems, objPath);
+ InventoryItem* inventoryItem = findInventoryItem(inventoryItems,
+ objPath);
if (inventoryItem != nullptr)
{
// Store inventory data in InventoryItem