summaryrefslogtreecommitdiff
path: root/src/uio.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-09-15 21:15:53 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-09-15 21:15:53 +0200
commitaa49abdf239bae6065fddd0839ec67a404c9748c (patch)
tree631fbb2df58aa35df3d60c65c037ef74b1807114 /src/uio.hh
parentbf41a601fd0447bcf3a2937a595a1cd8ca5c1633 (diff)
Add .clang-format
Make it easier to keep a consistent style
Diffstat (limited to 'src/uio.hh')
-rw-r--r--src/uio.hh20
1 files changed, 10 insertions, 10 deletions
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 <cstddef>
#include <expected>
@@ -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<size_t, io::ReadError> read(
- std::string& data, size_t max);
+ [[nodiscard]] std::expected<size_t, io::ReadError> read(std::string& data,
+ size_t max);
[[nodiscard]] std::expected<size_t, io::ReadError> repeat_read(
std::string& data, size_t max);
};
-[[nodiscard]] std::unique_ptr<Reader> open(
- std::unique_ptr<io::Reader> reader, u::ReaderConfig config = {});
+[[nodiscard]] std::unique_ptr<Reader> open(std::unique_ptr<io::Reader> reader,
+ u::ReaderConfig config = {});
[[nodiscard]] std::expected<std::unique_ptr<Reader>, 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<size_t, io::ReadError> read(
- std::u16string& data, size_t max);
+ [[nodiscard]] std::expected<size_t, io::ReadError> read(std::u16string& data,
+ size_t max);
[[nodiscard]] std::expected<size_t, io::ReadError> repeat_read(
std::u16string& data, size_t max);
};
-[[nodiscard]] std::unique_ptr<Reader> open(
- std::unique_ptr<io::Reader> reader, u::ReaderConfig config = {});
+[[nodiscard]] std::unique_ptr<Reader> open(std::unique_ptr<io::Reader> reader,
+ u::ReaderConfig config = {});
[[nodiscard]] std::expected<std::unique_ptr<Reader>, io::OpenError> open(
const std::string& file_path, u::ReaderConfig config = {});