From aa49abdf239bae6065fddd0839ec67a404c9748c Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Mon, 15 Sep 2025 21:15:53 +0200 Subject: Add .clang-format Make it easier to keep a consistent style --- src/uio.hh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/uio.hh') diff --git a/src/uio.hh b/src/uio.hh index a0911a1..3b26351 100644 --- a/src/uio.hh +++ b/src/uio.hh @@ -1,7 +1,7 @@ #ifndef UIO_HH #define UIO_HH -#include "io.hh" // IWYU pragma: export +#include "io.hh" // IWYU pragma: export #include #include @@ -25,7 +25,7 @@ struct ReaderConfig { bool skip_bom{true}; }; -} // namespace u8 +} // namespace u namespace u8 { @@ -34,15 +34,15 @@ class Reader : public io::Reader { using io::Reader::read; using io::Reader::repeat_read; - [[nodiscard]] std::expected read( - std::string& data, size_t max); + [[nodiscard]] std::expected read(std::string& data, + size_t max); [[nodiscard]] std::expected repeat_read( std::string& data, size_t max); }; -[[nodiscard]] std::unique_ptr open( - std::unique_ptr reader, u::ReaderConfig config = {}); +[[nodiscard]] std::unique_ptr open(std::unique_ptr reader, + u::ReaderConfig config = {}); [[nodiscard]] std::expected, io::OpenError> open( const std::string& file_path, u::ReaderConfig config = {}); @@ -58,15 +58,15 @@ class Reader : public io::Reader { using io::Reader::read; using io::Reader::repeat_read; - [[nodiscard]] std::expected read( - std::u16string& data, size_t max); + [[nodiscard]] std::expected read(std::u16string& data, + size_t max); [[nodiscard]] std::expected repeat_read( std::u16string& data, size_t max); }; -[[nodiscard]] std::unique_ptr open( - std::unique_ptr reader, u::ReaderConfig config = {}); +[[nodiscard]] std::unique_ptr open(std::unique_ptr reader, + u::ReaderConfig config = {}); [[nodiscard]] std::expected, io::OpenError> open( const std::string& file_path, u::ReaderConfig config = {}); -- cgit v1.3