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: I09e19a126d456dc184fd70e82d4e4e4217fa8ee7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/tools/test/tools_bt_unittest.cpp b/tools/test/tools_bt_unittest.cpp
index e1a091b..3d2c181 100644
--- a/tools/test/tools_bt_unittest.cpp
+++ b/tools/test/tools_bt_unittest.cpp
@@ -58,10 +58,11 @@
EXPECT_CALL(sysMock, read(fd, NotNull(), _))
.WillOnce(Invoke([&](int, void* buf, std::size_t count) {
- EXPECT_TRUE(count > bytes.size());
- std::memcpy(buf, bytes.data(), bytes.size());
- return bytes.size();
- })).WillOnce(Return(0));
+ EXPECT_TRUE(count > bytes.size());
+ std::memcpy(buf, bytes.data(), bytes.size());
+ return bytes.size();
+ }))
+ .WillOnce(Return(0));
EXPECT_CALL(progMock, updateProgress(bytes.size()));
@@ -99,10 +100,10 @@
EXPECT_CALL(sysMock, read(fd, NotNull(), _))
.WillOnce(Invoke([&](int, void* buf, std::size_t count) {
- EXPECT_TRUE(count > bytes.size());
- std::memcpy(buf, bytes.data(), bytes.size());
- return bytes.size();
- }));
+ EXPECT_TRUE(count > bytes.size());
+ std::memcpy(buf, bytes.data(), bytes.size());
+ return bytes.size();
+ }));
EXPECT_CALL(blobMock, writeBytes(session, 0, ContainerEq(bytes)))
.WillOnce(Throw(ipmiblob::BlobException("failure")));