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/memory.hpp b/redfish-core/lib/memory.hpp
index 4478472..c57d387 100644
--- a/redfish-core/lib/memory.hpp
+++ b/redfish-core/lib/memory.hpp
@@ -243,15 +243,14 @@
if (volatileSizeInKiB != nullptr)
{
-
aResp->res.jsonValue[jsonPtr]["VolatileSizeMiB"] =
(*volatileSizeInKiB) >> 10;
}
if (pmSizeInKiB != nullptr)
{
- aResp->res.jsonValue[jsonPtr]["NonVolatileSizeMiB"] =
- (*pmSizeInKiB) >> 10;
+ aResp->res.jsonValue[jsonPtr]["NonVolatileSizeMiB"] = (*pmSizeInKiB) >>
+ 10;
}
if (cacheSizeInKB != nullptr)
@@ -364,30 +363,26 @@
if (dataLockCapable != nullptr)
{
- aResp->res
- .jsonValue[jsonPtr]["SecurityCapabilities"]["DataLockCapable"] =
- *dataLockCapable;
+ aResp->res.jsonValue[jsonPtr]["SecurityCapabilities"]
+ ["DataLockCapable"] = *dataLockCapable;
}
if (passphraseCapable != nullptr)
{
- aResp->res
- .jsonValue[jsonPtr]["SecurityCapabilities"]["PassphraseCapable"] =
- *passphraseCapable;
+ aResp->res.jsonValue[jsonPtr]["SecurityCapabilities"]
+ ["PassphraseCapable"] = *passphraseCapable;
}
if (maxPassphraseCount != nullptr)
{
- aResp->res
- .jsonValue[jsonPtr]["SecurityCapabilities"]["MaxPassphraseCount"] =
- *maxPassphraseCount;
+ aResp->res.jsonValue[jsonPtr]["SecurityCapabilities"]
+ ["MaxPassphraseCount"] = *maxPassphraseCount;
}
if (passphraseLockLimit != nullptr)
{
- aResp->res
- .jsonValue[jsonPtr]["SecurityCapabilities"]["PassphraseLockLimit"] =
- *passphraseLockLimit;
+ aResp->res.jsonValue[jsonPtr]["SecurityCapabilities"]
+ ["PassphraseLockLimit"] = *passphraseLockLimit;
}
}
@@ -593,9 +588,8 @@
if (locationCode != nullptr)
{
- aResp->res
- .jsonValue[jsonPtr]["Location"]["PartLocation"]["ServiceLabel"] =
- *locationCode;
+ aResp->res.jsonValue[jsonPtr]["Location"]["PartLocation"]
+ ["ServiceLabel"] = *locationCode;
}
getPersistentMemoryProperties(aResp, properties, jsonPtr);