From 4ae83890ce3a82e1f9a716971aaa69591f0cf6cb Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 26 Sep 2024 16:51:10 +0200 Subject: Fix enum sizes proposed by clang-tidy. Enable performance-enum-size check. --- src/buildtool/main/cli.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/buildtool/main/cli.hpp') diff --git a/src/buildtool/main/cli.hpp b/src/buildtool/main/cli.hpp index d68cba4b..7717d16c 100644 --- a/src/buildtool/main/cli.hpp +++ b/src/buildtool/main/cli.hpp @@ -15,9 +15,11 @@ #ifndef INCLUDED_SRC_BUILDTOOL_MAIN_CLI #define INCLUDED_SRC_BUILDTOOL_MAIN_CLI +#include + #include "src/buildtool/common/cli.hpp" -enum class SubCommand { +enum class SubCommand : std::uint8_t { kUnknown, kVersion, kDescribe, @@ -34,7 +36,6 @@ enum class SubCommand { }; struct CommandLineArguments { - SubCommand cmd{SubCommand::kUnknown}; CommonArguments common; LogArguments log; AnalysisArguments analysis; @@ -56,6 +57,7 @@ struct CommandLineArguments { GcArguments gc; ToAddArguments to_add; ProtocolArguments protocol; + SubCommand cmd{SubCommand::kUnknown}; }; auto ParseCommandLineArguments(int argc, -- cgit v1.2.3