clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I8c84201cb2343a8c8a5507a49de0721a1bee7063
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/libpldmresponder/pdr_numeric_effecter.hpp b/libpldmresponder/pdr_numeric_effecter.hpp
index a425da3..362b10d 100644
--- a/libpldmresponder/pdr_numeric_effecter.hpp
+++ b/libpldmresponder/pdr_numeric_effecter.hpp
@@ -48,8 +48,8 @@
pdr->hdr.version = 1;
pdr->hdr.type = PLDM_NUMERIC_EFFECTER_PDR;
pdr->hdr.record_change_num = 0;
- pdr->hdr.length = sizeof(pldm_numeric_effecter_value_pdr) -
- sizeof(pldm_pdr_hdr);
+ pdr->hdr.length =
+ sizeof(pldm_numeric_effecter_value_pdr) - sizeof(pldm_pdr_hdr);
pdr->terminus_handle = e.value("terminus_handle", 0);
@@ -99,15 +99,15 @@
pdr->aux_oem_unit_handle = e.value("aux_oem_unit_handle", 0);
pdr->aux_rate_unit = e.value("aux_rate_unit", 0);
pdr->is_linear = e.value("is_linear", true);
- pdr->effecter_data_size = e.value("effecter_data_size",
- PLDM_EFFECTER_DATA_SIZE_UINT8);
+ pdr->effecter_data_size =
+ e.value("effecter_data_size", PLDM_EFFECTER_DATA_SIZE_UINT8);
pdr->resolution = e.value("effecter_resolution_init", 1.00);
pdr->offset = e.value("offset", 0.00);
pdr->accuracy = e.value("accuracy", 0);
pdr->plus_tolerance = e.value("plus_tolerance", 0);
pdr->minus_tolerance = e.value("minus_tolerance", 0);
- pdr->state_transition_interval = e.value("state_transition_interval",
- 0.00);
+ pdr->state_transition_interval =
+ e.value("state_transition_interval", 0.00);
pdr->transition_interval = e.value("transition_interval", 0.00);
switch (pdr->effecter_data_size)
{
@@ -139,8 +139,8 @@
break;
}
- pdr->range_field_format = e.value("range_field_format",
- PLDM_RANGE_FIELD_FORMAT_UINT8);
+ pdr->range_field_format =
+ e.value("range_field_format", PLDM_RANGE_FIELD_FORMAT_UINT8);
pdr->range_field_support.byte = e.value("range_field_support", 0);
switch (pdr->range_field_format)
{
@@ -208,8 +208,8 @@
pldm::utils::DBusMapping dbusMapping{};
try
{
- auto service = dBusIntf.getService(objectPath.c_str(),
- interface.c_str());
+ auto service =
+ dBusIntf.getService(objectPath.c_str(), interface.c_str());
dbusMapping = pldm::utils::DBusMapping{objectPath, interface,
propertyName, propertyType};