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: I6bbb587615b9d6f158900201ca04a647cb3a8f96
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/fd/managed.cpp b/src/fd/managed.cpp
index 1b19284..cd4ec1c 100644
--- a/src/fd/managed.cpp
+++ b/src/fd/managed.cpp
@@ -1,9 +1,11 @@
#include <fmt/format.h>
+#include <unistd.h>
+
#include <stdplus/fd/dupable.hpp>
#include <stdplus/fd/managed.hpp>
#include <stdplus/fd/ops.hpp>
#include <stdplus/util/cexec.hpp>
-#include <unistd.h>
+
#include <utility>
namespace stdplus
@@ -20,9 +22,7 @@
} // namespace detail
-ManagedFd::ManagedFd() noexcept : handle(std::nullopt)
-{
-}
+ManagedFd::ManagedFd() noexcept : handle(std::nullopt) {}
ManagedFd::ManagedFd(int&& fd) : handle(std::move(fd))
{
@@ -31,12 +31,9 @@
ManagedFd::ManagedFd(DupableFd&& other) noexcept :
handle(static_cast<detail::ManagedFdHandle&&>(other.handle))
-{
-}
+{}
-ManagedFd::ManagedFd(const DupableFd& other) : ManagedFd(DupableFd(other))
-{
-}
+ManagedFd::ManagedFd(const DupableFd& other) : ManagedFd(DupableFd(other)) {}
ManagedFd& ManagedFd::operator=(DupableFd&& other) noexcept
{