clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I84a952aae0e96b2960d8622659902df660d5ddb8
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/test/source/signal.cpp b/test/source/signal.cpp
index 9ac0f67..effd7a3 100644
--- a/test/source/signal.cpp
+++ b/test/source/signal.cpp
@@ -1,17 +1,20 @@
-#include <cerrno>
-#include <functional>
-#include <gmock/gmock.h>
-#include <gtest/gtest.h>
-#include <memory>
+#include <signal.h>
+#include <systemd/sd-event.h>
+
#include <sdeventplus/event.hpp>
#include <sdeventplus/exception.hpp>
#include <sdeventplus/source/signal.hpp>
#include <sdeventplus/test/sdevent.hpp>
-#include <signal.h>
-#include <systemd/sd-event.h>
+
+#include <cerrno>
+#include <functional>
+#include <memory>
#include <type_traits>
#include <utility>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
+
namespace sdeventplus
{
namespace source
@@ -81,8 +84,8 @@
}
int completions = 0;
const struct signalfd_siginfo* return_si;
- Signal::Callback callback = [&](Signal&,
- const struct signalfd_siginfo* si) {
+ Signal::Callback callback =
+ [&](Signal&, const struct signalfd_siginfo* si) {
return_si = si;
completions++;
};
@@ -113,8 +116,8 @@
testing::_, nullptr))
.WillOnce(Return(-EINVAL));
int completions = 0;
- Signal::Callback callback = [&completions](Signal&,
- const struct signalfd_siginfo*) {
+ Signal::Callback callback =
+ [&completions](Signal&, const struct signalfd_siginfo*) {
completions++;
};
EXPECT_THROW(Signal(*event, sig, std::move(callback)), SdEventError);