From 46493de3bfafc4a368eff84322088928cdaa21e8 Mon Sep 17 00:00:00 2001 From: Nobuhiro Ban Date: Thu, 12 Sep 2024 17:41:39 +0900 Subject: [PATCH] cleanup: enum-order, no-nolint --- include/shirakami/scheme.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/shirakami/scheme.h b/include/shirakami/scheme.h index 84b7481ca..b64c689d0 100644 --- a/include/shirakami/scheme.h +++ b/include/shirakami/scheme.h @@ -344,8 +344,8 @@ enum class OP_TYPE : std::int32_t { BEGIN, COMMIT, DELETE, - NONE, INSERT, + NONE, SCAN, SEARCH, UPDATE, @@ -357,25 +357,25 @@ inline constexpr std::string_view to_string_view( // NOLINT using namespace std::string_view_literals; switch (op) { case OP_TYPE::ABORT: - return "ABORT"sv; // NOLINT + return "ABORT"sv; case OP_TYPE::BEGIN: - return "BEGIN"sv; // NOLINT + return "BEGIN"sv; case OP_TYPE::COMMIT: - return "COMMIT"sv; // NOLINT + return "COMMIT"sv; case OP_TYPE::DELETE: - return "DELETE"sv; // NOLINT + return "DELETE"sv; case OP_TYPE::INSERT: - return "INSERT"sv; // NOLINT + return "INSERT"sv; case OP_TYPE::NONE: - return "NONE"sv; // NOLINT + return "NONE"sv; case OP_TYPE::SCAN: - return "SCAN"sv; // NOLINT + return "SCAN"sv; case OP_TYPE::SEARCH: - return "SEARCH"sv; // NOLINT + return "SEARCH"sv; case OP_TYPE::UPDATE: - return "UPDATE"sv; // NOLINT + return "UPDATE"sv; case OP_TYPE::UPSERT: - return "UPSERT"sv; // NOLINT + return "UPSERT"sv; } std::abort(); }