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: I4635e7b93b66ada3ab5390a21cf465919059fbc1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/test/exception.cpp b/test/exception.cpp
index a0d2e54..48e562e 100644
--- a/test/exception.cpp
+++ b/test/exception.cpp
@@ -16,8 +16,9 @@
auto y = std::make_unique<int>(2);
auto z = std::make_unique<int>(3);
EXPECT_EQ(3, ignore([x = std::move(x)](auto&& v) { return *v + *x; })(y));
- EXPECT_EQ(5, ignore([z = std::move(z)](auto v) { return *v + *z; })(
- std::move(y)));
+ EXPECT_EQ(5, ignore([z = std::move(z)](auto v) {
+ return *v + *z;
+ })(std::move(y)));
}
TEST(Exception, IgnoreQuiet)
diff --git a/test/net/addr/ether.cpp b/test/net/addr/ether.cpp
index cf23223..474bd96 100644
--- a/test/net/addr/ether.cpp
+++ b/test/net/addr/ether.cpp
@@ -43,12 +43,12 @@
tsh(EtherAddr{0x01, 0x02, 0x03, 0x04, 0x05, 0x67}));
EXPECT_EQ("00:00:00:00:00:00",
tsh(ether_addr{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}));
- EXPECT_EQ(
- "a 01:02:03:04:05:67 b",
- fmt::format("a {} b", EtherAddr{0x01, 0x02, 0x03, 0x04, 0x05, 0x67}));
- EXPECT_EQ(
- "a 01:02:03:04:05:67 b",
- std::format("a {} b", EtherAddr{0x01, 0x02, 0x03, 0x04, 0x05, 0x67}));
+ EXPECT_EQ("a 01:02:03:04:05:67 b",
+ fmt::format("a {} b",
+ EtherAddr{0x01, 0x02, 0x03, 0x04, 0x05, 0x67}));
+ EXPECT_EQ("a 01:02:03:04:05:67 b",
+ std::format("a {} b",
+ EtherAddr{0x01, 0x02, 0x03, 0x04, 0x05, 0x67}));
}
TEST(FromStr, EtherAddr)