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: I748aeef75e2078199193cd98013dd2fe7f6b5db8
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/watch.cpp b/watch.cpp
index 37a0b6a..18c4dfd 100644
--- a/watch.cpp
+++ b/watch.cpp
@@ -27,8 +27,7 @@
Watch::Watch(const EventPtr& eventObj, const int flags, const uint32_t mask,
const uint32_t events, const std::filesystem::path& path,
UserType userFunc) :
- flags(flags),
- mask(mask), events(events), path(path), fd(inotifyInit()),
+ flags(flags), mask(mask), events(events), path(path), fd(inotifyInit()),
userFunc(userFunc)
{
// Check if watch DIR exists.
@@ -49,8 +48,8 @@
elog<InternalFailure>();
}
- auto rc = sd_event_add_io(eventObj.get(), nullptr, fd(), events, callback,
- this);
+ auto rc =
+ sd_event_add_io(eventObj.get(), nullptr, fd(), events, callback, this);
if (0 > rc)
{
// Failed to add to event loop