summaryrefslogtreecommitdiff
path: root/src/u16.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-09-10 22:11:27 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-09-10 22:11:27 +0200
commitcf99d0c865474105c14b2348fdbd1c83d87d5a29 (patch)
treee7317307b2e4f7abd4db5fde06fbd380f43553ab /src/u16.hh
parentf0ba930314e05c8d949ce92ffbda41fdb133198a (diff)
fixup! Make clang-tidy happy
Diffstat (limited to 'src/u16.hh')
-rw-r--r--src/u16.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/u16.hh b/src/u16.hh
index c23a366..781e6a4 100644
--- a/src/u16.hh
+++ b/src/u16.hh
@@ -1,12 +1,13 @@
#ifndef U16_HH
#define U16_HH
+#include "u.hh" // IWYU pragma: export
+
#include <cstdint> // IWYU pragma: export
#include <expected>
#include <iterator>
#include <type_traits>
-
-#include "u.hh" // IWYU pragma: export
+#include <utility>
namespace u16 {
@@ -49,6 +50,7 @@ std::expected<uint32_t, u::ReadErrorReplace> read_replace(T& start,
case u::ReadError::Invalid:
return 0xfffd;
}
+ std::unreachable();
}
template<std::forward_iterator T>