summaryrefslogtreecommitdiff
path: root/src/buildtool/main/cli.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-09-26 16:51:10 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-09-26 16:54:21 +0200
commit4ae83890ce3a82e1f9a716971aaa69591f0cf6cb (patch)
treedac323622558073c89fcbd892da02af0cfc453ac /src/buildtool/main/cli.hpp
parent5baab75fd2ae62b6f6407991922fe234f9e73c88 (diff)
downloadjustbuild-4ae83890ce3a82e1f9a716971aaa69591f0cf6cb.tar.gz
Fix enum sizes proposed by clang-tidy.
Enable performance-enum-size check.
Diffstat (limited to 'src/buildtool/main/cli.hpp')
-rw-r--r--src/buildtool/main/cli.hpp6
1 files changed, 4 insertions, 2 deletions
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 <cstdint>
+
#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,