Update clang-format
refer: https://github.com/openbmc/docs/blob/master/style/cpp/.clang-format
`Don't break long string literals`
Tested: built bmcweb successfully and RedfishValidator Passed.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ib58f7c942fd3838592e043c57e0b6ffcdc3d963b
diff --git a/redfish-core/lib/memory.hpp b/redfish-core/lib/memory.hpp
index 5d508c4..90e54e8 100644
--- a/redfish-core/lib/memory.hpp
+++ b/redfish-core/lib/memory.hpp
@@ -75,8 +75,8 @@
{
return "DDR2_SDRAM_FB_DIMM";
}
- if (memoryType == "xyz.openbmc_project.Inventory.Item.Dimm.DeviceType.DDR2_"
- "SDRAM_FB_DIMM_PROB")
+ if (memoryType ==
+ "xyz.openbmc_project.Inventory.Item.Dimm.DeviceType.DDR2_SDRAM_FB_DIMM_PROB")
{
return "DDR2_SDRAM_FB_DIMM_PROBE";
}
@@ -188,8 +188,8 @@
if (value == nullptr)
{
messages::internalError(aResp->res);
- BMCWEB_LOG_DEBUG << "Invalid property type for "
- "VolatileRegionSizeLimitKiB";
+ BMCWEB_LOG_DEBUG
+ << "Invalid property type for VolatileRegionSizeLimitKiB";
return;
}
aResp->res.jsonValue["VolatileRegionSizeLimitMiB"] = (*value) >> 10;
@@ -251,8 +251,8 @@
if (value == nullptr)
{
messages::internalError(aResp->res);
- BMCWEB_LOG_DEBUG << "Invalid property type for "
- "VolatileRegionMaxSizeInKib";
+ BMCWEB_LOG_DEBUG
+ << "Invalid property type for VolatileRegionMaxSizeInKib";
return;
}
aResp->res.jsonValue["VolatileRegionSizeMaxMiB"] = (*value) >> 10;
@@ -277,8 +277,8 @@
if (value == nullptr)
{
messages::internalError(aResp->res);
- BMCWEB_LOG_DEBUG << "Invalid property type for "
- "AllocationIncrementInKiB";
+ BMCWEB_LOG_DEBUG
+ << "Invalid property type for AllocationIncrementInKiB";
return;
}
aResp->res.jsonValue["AllocationIncrementMiB"] = (*value) >> 10;
@@ -290,8 +290,8 @@
if (value == nullptr)
{
messages::internalError(aResp->res);
- BMCWEB_LOG_DEBUG << "Invalid property type for "
- "AllocationAlignmentInKiB";
+ BMCWEB_LOG_DEBUG
+ << "Invalid property type for AllocationAlignmentInKiB";
return;
}
aResp->res.jsonValue["AllocationAlignmentMiB"] = (*value) >> 10;
@@ -353,8 +353,8 @@
if (value == nullptr)
{
messages::internalError(aResp->res);
- BMCWEB_LOG_DEBUG << "Invalid property type for "
- "MaxAveragePowerLimitmW";
+ BMCWEB_LOG_DEBUG
+ << "Invalid property type for MaxAveragePowerLimitmW";
return;
}
aResp->res.jsonValue["MaxTDPMilliWatts"] = *value;
@@ -860,9 +860,9 @@
// device, i.e.
// /xyz/openbmc_project/Inventory/Item/Dimm1/Partition1
// /xyz/openbmc_project/Inventory/Item/Dimm1/Partition2
- if (std::find(interfaces.begin(), interfaces.end(),
- "xyz.openbmc_project.Inventory.Item."
- "PersistentMemory.Partition") !=
+ if (std::find(
+ interfaces.begin(), interfaces.end(),
+ "xyz.openbmc_project.Inventory.Item.PersistentMemory.Partition") !=
interfaces.end())
{
getDimmPartitionData(aResp, service, path);