From 1ca12400c0e0d32500ee6e7885ee25049ee505b7 Mon Sep 17 00:00:00 2001 From: Nana Sakisaka <1901813+saki7@users.noreply.github.com> Date: Tue, 8 Sep 2026 05:08:15 +0900 Subject: [PATCH] Update iris --- include/iris/x4/debug/annotate.hpp | 22 +++++++++++----------- modules/iris | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/iris/x4/debug/annotate.hpp b/include/iris/x4/debug/annotate.hpp index 515223961..f1b45f167 100644 --- a/include/iris/x4/debug/annotate.hpp +++ b/include/iris/x4/debug/annotate.hpp @@ -15,34 +15,34 @@ #include -#include +#include #include -#include #include +#include + namespace iris::x4 { namespace contexts { struct error_handler; } // contexts -enum struct annotated_rule_kind : unsigned +enum struct annotated_rule_kind : std::uint8_t { annotate_none = 0, - annotate_success = 1 << 0, // suitable for any child parsers - annotate_expectation_failure = 1 << 1, // suitable for root parser - annotate_trace = 1 << 2, // suitable for any child parsers (except for the primitive ones) + annotate_success = 1u << 0, // suitable for any child parsers + annotate_expectation_failure = 1u << 1, // suitable for root parser + annotate_trace = 1u << 2, // suitable for any child parsers (except for the primitive ones) }; } // iris::x4 -namespace iris { - template<> -struct bitops_enabled : std::true_type {}; - -} // iris +struct iris::enum_traits +{ + static constexpr int max_bit = 2; +}; namespace iris::x4 { diff --git a/modules/iris b/modules/iris index f69f014ac..ba5c2bdea 160000 --- a/modules/iris +++ b/modules/iris @@ -1 +1 @@ -Subproject commit f69f014ac34990089d3a1b5489c4384fe5f04266 +Subproject commit ba5c2bdea2fef9e86a17d5c189fd6af67a0aa4a5