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: I23c72085a3819d1036e1b926ed47ef80dfde924c
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/post_code.cpp b/src/post_code.cpp
index 957c7ba..037f293 100644
--- a/src/post_code.cpp
+++ b/src/post_code.cpp
@@ -76,8 +76,9 @@
{
if (!timer)
{
- timer = std::make_unique<sdbusplus::Timer>(
- event.get(), [this]() { serialize(postCodeListPath); });
+ timer = std::make_unique<sdbusplus::Timer>(event.get(), [this]() {
+ serialize(postCodeListPath);
+ });
}
// steady_clock is a monotonic clock that is guaranteed to never be adjusted
@@ -114,8 +115,8 @@
if (strlen(POSTCODE_DISPLAY_PATH) > 0)
{
- std::string postCodeDisplayPath = POSTCODE_DISPLAY_PATH +
- std::to_string(node);
+ std::string postCodeDisplayPath =
+ POSTCODE_DISPLAY_PATH + std::to_string(node);
std::ofstream postCodeDisplayFile(postCodeDisplayPath);
postCodeDisplayFile << "0x" << std::setfill('0') << std::setw(2)