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/impl.cpp b/src/fd/impl.cpp
index 34b365f..1272fc8 100644
--- a/src/fd/impl.cpp
+++ b/src/fd/impl.cpp
@@ -1,13 +1,15 @@
#include <fcntl.h>
#include <fmt/format.h>
-#include <stdplus/exception.hpp>
-#include <stdplus/fd/impl.hpp>
-#include <stdplus/util/cexec.hpp>
-#include <string_view>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <unistd.h>
+#include <stdplus/exception.hpp>
+#include <stdplus/fd/impl.hpp>
+#include <stdplus/util/cexec.hpp>
+
+#include <string_view>
+
namespace stdplus
{
namespace fd
@@ -35,8 +37,8 @@
std::span<std::byte> FdImpl::recv(std::span<std::byte> buf, RecvFlags flags)
{
- ssize_t amt =
- ::recv(get(), buf.data(), buf.size(), static_cast<int>(flags));
+ ssize_t amt = ::recv(get(), buf.data(), buf.size(),
+ static_cast<int>(flags));
if (amt == -1)
{
if (errno == EAGAIN || errno == EWOULDBLOCK)
@@ -69,8 +71,8 @@
std::span<const std::byte> FdImpl::send(std::span<const std::byte> data,
SendFlags flags)
{
- ssize_t amt =
- ::send(get(), data.data(), data.size(), static_cast<int>(flags));
+ ssize_t amt = ::send(get(), data.data(), data.size(),
+ static_cast<int>(flags));
if (amt == -1)
{
if (errno == EAGAIN || errno == EWOULDBLOCK)