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/atomic.cpp b/src/fd/atomic.cpp
index df200e6..ce9dff2 100644
--- a/src/fd/atomic.cpp
+++ b/src/fd/atomic.cpp
@@ -1,10 +1,12 @@
-#include <cstdlib>
-#include <filesystem>
#include <fmt/format.h>
+#include <sys/stat.h>
+
#include <stdplus/fd/atomic.hpp>
#include <stdplus/fd/managed.hpp>
#include <stdplus/util/cexec.hpp>
-#include <sys/stat.h>
+
+#include <cstdlib>
+#include <filesystem>
#include <system_error>
#include <utility>
@@ -16,8 +18,8 @@
static std::string makeTmpName(const std::filesystem::path& filename)
{
auto name = filename.filename();
- auto path =
- filename.parent_path() / fmt::format(".{}.XXXXXX", name.native());
+ auto path = filename.parent_path() /
+ fmt::format(".{}.XXXXXX", name.native());
return path.native();
}
@@ -38,8 +40,7 @@
mode(mode),
tmpname(!tmpl.empty() ? std::string(tmpl) : makeTmpName(filename)),
fd(mktemp(tmpname))
-{
-}
+{}
AtomicWriter::AtomicWriter(AtomicWriter&& other) :
filename(std::move(other.filename)), mode(other.mode),