Skip to content

Commit

Permalink
cleanup: enum-order, no-nolint
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Sep 12, 2024
1 parent 5e00592 commit 46493de
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions include/shirakami/scheme.h
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ enum class OP_TYPE : std::int32_t {
BEGIN,
COMMIT,
DELETE,
NONE,
INSERT,
NONE,
SCAN,
SEARCH,
UPDATE,
Expand All @@ -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();
}
Expand Down

0 comments on commit 46493de

Please sign in to comment.