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: I8078c8196a2d5706179dc10bf20c0af1a69ec962
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/test/interface_ops_test.cpp b/test/interface_ops_test.cpp
index 1fb15ed..b6d6ac8 100644
--- a/test/interface_ops_test.cpp
+++ b/test/interface_ops_test.cpp
@@ -121,8 +121,8 @@
EXPECT_CALL(mock, constructWithProperties(_, _, _)).Times(0);
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i, false);
EXPECT_NO_THROW(
std::any_cast<std::shared_ptr<DummyInterfaceWithoutProperties>>(r));
@@ -138,8 +138,8 @@
EXPECT_CALL(mock, constructWithProperties(_, _, _)).Times(0);
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i, false);
EXPECT_NO_THROW(
std::any_cast<std::shared_ptr<DummyInterfaceWithoutProperties>>(r));
@@ -155,8 +155,8 @@
EXPECT_CALL(mock, constructWithProperties("bar", _, _)).Times(1);
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithProperties>::op(b, "bar", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithProperties>::op(b, "bar", i, false);
EXPECT_NO_THROW(
std::any_cast<std::shared_ptr<DummyInterfaceWithProperties>>(r));
@@ -172,8 +172,8 @@
EXPECT_CALL(mock, constructWithProperties("foo", _, _)).Times(1);
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithProperties>::op(b, "foo", i, false);
EXPECT_NO_THROW(
std::any_cast<std::shared_ptr<DummyInterfaceWithProperties>>(r));
@@ -188,8 +188,8 @@
EXPECT_CALL(mock, setPropertyByName(_, _, _)).Times(0);
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i, false);
AssignInterface<DummyInterfaceWithoutProperties>::op(i, r, false);
}
@@ -203,8 +203,8 @@
EXPECT_CALL(mock, setPropertyByName(_, _, _)).Times(0);
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i, false);
AssignInterface<DummyInterfaceWithoutProperties>::op(i, r, false);
}
@@ -218,8 +218,8 @@
EXPECT_CALL(mock, setPropertyByName(_, _, _)).Times(0);
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithProperties>::op(b, "foo", i, false);
AssignInterface<DummyInterfaceWithProperties>::op(i, r, false);
}
@@ -233,8 +233,8 @@
EXPECT_CALL(mock, setPropertyByName("foo"s, 1ll, _)).Times(1);
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithProperties>::op(b, "bar", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithProperties>::op(b, "bar", i, false);
AssignInterface<DummyInterfaceWithProperties>::op(i, r, false);
}
@@ -246,8 +246,8 @@
sdbusplus::SdBusMock interface;
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i, false);
EXPECT_CALL(mock, serializeTwoArgs("/foo"s, "bar"s)).Times(1);
@@ -262,8 +262,8 @@
sdbusplus::SdBusMock interface;
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i, false);
EXPECT_CALL(mock, serializeTwoArgs("/foo"s, "bar"s)).Times(1);
@@ -278,8 +278,8 @@
sdbusplus::SdBusMock interface;
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithProperties>::op(b, "foo", i, false);
EXPECT_CALL(mock, serializeThreeArgs("/foo"s, "bar"s, _)).Times(1);
@@ -294,8 +294,8 @@
sdbusplus::SdBusMock interface;
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithProperties>::op(b, "foo", i, false);
EXPECT_CALL(mock, serializeThreeArgs("/foo"s, "bar"s, _)).Times(1);
@@ -310,8 +310,8 @@
sdbusplus::SdBusMock interface;
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i, false);
EXPECT_CALL(mock, deserializeNoop()).Times(1);
@@ -326,8 +326,8 @@
sdbusplus::SdBusMock interface;
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithoutProperties>::op(b, "foo", i, false);
EXPECT_CALL(mock, deserializeNoop()).Times(1);
@@ -342,8 +342,8 @@
sdbusplus::SdBusMock interface;
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithProperties>::op(b, "foo", i, false);
EXPECT_CALL(mock, deserializeThreeArgs("/foo"s, "bar"s, _)).Times(1);
@@ -358,8 +358,8 @@
sdbusplus::SdBusMock interface;
auto b = sdbusplus::get_mocked_new(&interface);
- auto r = MakeInterface<DummyInterfaceWithProperties>::op(b, "foo", i,
- false);
+ auto r =
+ MakeInterface<DummyInterfaceWithProperties>::op(b, "foo", i, false);
EXPECT_CALL(mock, deserializeThreeArgs("/foo"s, "bar"s, _)).Times(1);