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: I6c62f244ae77c511ecbb62b72964154f465fb590
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/test/source/base.cpp b/test/source/base.cpp
index f192546..369d6e5 100644
--- a/test/source/base.cpp
+++ b/test/source/base.cpp
@@ -56,8 +56,7 @@
};
BaseImpl::BaseImpl(const Event& event, sd_event_source* source,
- std::false_type) :
- Base(event, source, std::false_type())
+ std::false_type) : Base(event, source, std::false_type())
{
set_userdata(std::make_unique<BaseImplData>(*this));
}
@@ -196,8 +195,8 @@
sd_event_source_set_userdata(expected_source, testing::_))
.WillOnce(DoAll(SaveArg<1>(&userdata), Return(nullptr)));
}
- auto source = std::make_unique<BaseImpl>(*event, expected_source,
- std::false_type());
+ auto source =
+ std::make_unique<BaseImpl>(*event, expected_source, std::false_type());
EXPECT_CALL(mock, sd_event_source_get_userdata(expected_source))
.WillRepeatedly(Return(userdata));
EXPECT_FALSE(source->get_prepare());