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: I61c7e22e726dbab6c7f3da43270adbdb9b4927fb
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/test/buffer_test.cpp b/test/buffer_test.cpp
index c09a926..3c8007a 100644
--- a/test/buffer_test.cpp
+++ b/test/buffer_test.cpp
@@ -36,8 +36,8 @@
         std::transform(testMagicNumber.begin(), testMagicNumber.end(),
                        testInitializationHeader.magicNumber.begin(),
                        [](uint32_t number) -> little_uint32_t {
-            return boost::endian::native_to_little(number);
-        });
+                           return boost::endian::native_to_little(number);
+                       });
     }
     ~BufferTest() override = default;
 
@@ -132,9 +132,9 @@
                 write(0, ElementsAreArray(testInitializationHeaderPtr,
                                           bufferHeaderSize)))
         .WillOnce(Return(bufferHeaderSize));
-    EXPECT_NO_THROW(bufferImpl->initialize(testBmcInterfaceVersion,
-                                           testQueueSize, testUeRegionSize,
-                                           testMagicNumber));
+    EXPECT_NO_THROW(
+        bufferImpl->initialize(testBmcInterfaceVersion, testQueueSize,
+                               testUeRegionSize, testMagicNumber));
     EXPECT_EQ(bufferImpl->getCachedBufferHeader(), testInitializationHeader);
 }
 
@@ -252,9 +252,9 @@
 
     EXPECT_CALL(*dataInterfaceMockPtr, write(0, _))
         .WillOnce(Return(bufferHeaderSize));
-    EXPECT_NO_THROW(bufferImpl->initialize(testBmcInterfaceVersion,
-                                           wrongQueueSize, testUeRegionSize,
-                                           testMagicNumber));
+    EXPECT_NO_THROW(
+        bufferImpl->initialize(testBmcInterfaceVersion, wrongQueueSize,
+                               testUeRegionSize, testMagicNumber));
     EXPECT_THROW(
         try {
             bufferImpl->getMaxOffset();
@@ -279,9 +279,9 @@
 
     EXPECT_CALL(*dataInterfaceMockPtr, write(0, _))
         .WillOnce(Return(bufferHeaderSize));
-    EXPECT_NO_THROW(bufferImpl->initialize(testBmcInterfaceVersion,
-                                           testQueueSize, testUeRegionSize + 1,
-                                           testMagicNumber));
+    EXPECT_NO_THROW(
+        bufferImpl->initialize(testBmcInterfaceVersion, testQueueSize,
+                               testUeRegionSize + 1, testMagicNumber));
     EXPECT_THROW(
         try {
             bufferImpl->getMaxOffset();
@@ -307,9 +307,9 @@
 
     EXPECT_CALL(*dataInterfaceMockPtr, write(0, _))
         .WillOnce(Return(bufferHeaderSize));
-    EXPECT_NO_THROW(bufferImpl->initialize(testBmcInterfaceVersion,
-                                           testQueueSize, testUeRegionSize - 1,
-                                           testMagicNumber));
+    EXPECT_NO_THROW(
+        bufferImpl->initialize(testBmcInterfaceVersion, testQueueSize,
+                               testUeRegionSize - 1, testMagicNumber));
     EXPECT_THROW(
         try {
             bufferImpl->getQueueOffset();
@@ -344,16 +344,16 @@
 
         EXPECT_CALL(*dataInterfaceMockPtr, write(0, _))
             .WillOnce(Return(bufferHeaderSize));
-        EXPECT_NO_THROW(bufferImpl->initialize(testBmcInterfaceVersion,
-                                               testQueueSize, testUeRegionSize,
-                                               testMagicNumber));
+        EXPECT_NO_THROW(
+            bufferImpl->initialize(testBmcInterfaceVersion, testQueueSize,
+                                   testUeRegionSize, testMagicNumber));
     }
     static constexpr size_t expectedWriteSize = 3;
     static constexpr uint8_t expectedBmcReadPtrOffset = 0x21;
     static constexpr size_t expectedqueueOffset = 0x30 + testUeRegionSize;
 
-    static constexpr size_t testMaxOffset = testQueueSize - testUeRegionSize -
-                                            sizeof(struct CircularBufferHeader);
+    static constexpr size_t testMaxOffset =
+        testQueueSize - testUeRegionSize - sizeof(struct CircularBufferHeader);
     uint8_t* testInitializationHeaderPtr =
         reinterpret_cast<uint8_t*>(&testInitializationHeader);
 };
@@ -699,9 +699,9 @@
     initializeFuncMock();
 
     EXPECT_CALL(*dataInterfaceMockPtr, read(0, bufferHeaderSize))
-        .WillOnce(Return(std::vector<uint8_t>(testInitializationHeaderPtr,
-                                              testInitializationHeaderPtr +
-                                                  bufferHeaderSize)));
+        .WillOnce(Return(std::vector<uint8_t>(
+            testInitializationHeaderPtr,
+            testInitializationHeaderPtr + bufferHeaderSize)));
     EXPECT_THROW(
         try {
             bufferImpl->readErrorLogs();
@@ -721,9 +721,9 @@
     initializeFuncMock();
 
     EXPECT_CALL(*dataInterfaceMockPtr, read(0, bufferHeaderSize))
-        .WillOnce(Return(std::vector<uint8_t>(testInitializationHeaderPtr,
-                                              testInitializationHeaderPtr +
-                                                  bufferHeaderSize)));
+        .WillOnce(Return(std::vector<uint8_t>(
+            testInitializationHeaderPtr,
+            testInitializationHeaderPtr + bufferHeaderSize)));
     EXPECT_THROW(
         try {
             bufferImpl->readErrorLogs();
@@ -738,9 +738,9 @@
 TEST_F(BufferReadErrorLogsTest, IdenticalPtrsPass)
 {
     EXPECT_CALL(*dataInterfaceMockPtr, read(0, bufferHeaderSize))
-        .WillOnce(Return(std::vector<uint8_t>(testInitializationHeaderPtr,
-                                              testInitializationHeaderPtr +
-                                                  bufferHeaderSize)));
+        .WillOnce(Return(std::vector<uint8_t>(
+            testInitializationHeaderPtr,
+            testInitializationHeaderPtr + bufferHeaderSize)));
     EXPECT_NO_THROW(bufferImpl->readErrorLogs());
 }
 
@@ -752,9 +752,9 @@
         boost::endian::native_to_little((entryAndHeaderSize));
     initializeFuncMock();
     EXPECT_CALL(*dataInterfaceMockPtr, read(0, bufferHeaderSize))
-        .WillOnce(Return(std::vector<uint8_t>(testInitializationHeaderPtr,
-                                              testInitializationHeaderPtr +
-                                                  bufferHeaderSize)));
+        .WillOnce(Return(std::vector<uint8_t>(
+            testInitializationHeaderPtr,
+            testInitializationHeaderPtr + bufferHeaderSize)));
     std::vector<uint8_t> testEntryHeaderVector(
         testEntryHeaderPtr, testEntryHeaderPtr + entryHeaderSize);
     std::vector<uint8_t> testEntryVector(testEntrySize);
@@ -781,9 +781,9 @@
     testInitializationHeader.biosWritePtr = entryAndHeaderSize;
     initializeFuncMock();
     EXPECT_CALL(*dataInterfaceMockPtr, read(0, bufferHeaderSize))
-        .WillOnce(Return(std::vector<uint8_t>(testInitializationHeaderPtr,
-                                              testInitializationHeaderPtr +
-                                                  bufferHeaderSize)));
+        .WillOnce(Return(std::vector<uint8_t>(
+            testInitializationHeaderPtr,
+            testInitializationHeaderPtr + bufferHeaderSize)));
 
     std::vector<uint8_t> testEntryHeaderVector(
         testEntryHeaderPtr, testEntryHeaderPtr + entryHeaderSize);
@@ -819,9 +819,9 @@
         boost::endian::native_to_little(entryAndHeaderSize - 1);
     initializeFuncMock();
     EXPECT_CALL(*dataInterfaceMockPtr, read(0, bufferHeaderSize))
-        .WillOnce(Return(std::vector<uint8_t>(testInitializationHeaderPtr,
-                                              testInitializationHeaderPtr +
-                                                  bufferHeaderSize)));
+        .WillOnce(Return(std::vector<uint8_t>(
+            testInitializationHeaderPtr,
+            testInitializationHeaderPtr + bufferHeaderSize)));
 
     std::vector<uint8_t> testEntryHeaderVector(
         testEntryHeaderPtr, testEntryHeaderPtr + entryHeaderSize);