clang-format: copy latest and re-format

clang-format-17 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: Iecd47831c4a1defc81f3e54332101dc48b0cb6ff
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/watch.cpp b/watch.cpp
index 933e5ab..e785265 100644
--- a/watch.cpp
+++ b/watch.cpp
@@ -75,26 +75,26 @@
 
     ioPtr = std::make_unique<sdeventplus::source::IO>(
         event, fd, EPOLLIN, [this](sdeventplus::source::IO&, int fd, uint32_t) {
-            constexpr int size = sizeof(struct inotify_event) + NAME_MAX + 1;
-            std::array<char, size> buffer{};
-            int length = read(fd, buffer.data(), buffer.size());
-            if (length >= static_cast<int>(sizeof(struct inotify_event)))
+        constexpr int size = sizeof(struct inotify_event) + NAME_MAX + 1;
+        std::array<char, size> buffer{};
+        int length = read(fd, buffer.data(), buffer.size());
+        if (length >= static_cast<int>(sizeof(struct inotify_event)))
+        {
+            struct inotify_event* notifyEvent =
+                reinterpret_cast<struct inotify_event*>(&buffer[0]);
+            if (notifyEvent->len)
             {
-                struct inotify_event* notifyEvent =
-                    reinterpret_cast<struct inotify_event*>(&buffer[0]);
-                if (notifyEvent->len)
+                if (watchFile == notifyEvent->name)
                 {
-                    if (watchFile == notifyEvent->name)
-                    {
-                        callback();
-                    }
+                    callback();
                 }
             }
-            else
-            {
-                lg2::error("Failed to read inotify event");
-            }
-        });
+        }
+        else
+        {
+            lg2::error("Failed to read inotify event");
+        }
+    });
 }
 
 void Watch::stopWatch()