diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-26 16:51:10 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-26 16:54:21 +0200 |
commit | 4ae83890ce3a82e1f9a716971aaa69591f0cf6cb (patch) | |
tree | dac323622558073c89fcbd892da02af0cfc453ac /src/other_tools/git_operations | |
parent | 5baab75fd2ae62b6f6407991922fe234f9e73c88 (diff) | |
download | justbuild-4ae83890ce3a82e1f9a716971aaa69591f0cf6cb.tar.gz |
Fix enum sizes proposed by clang-tidy.
Enable performance-enum-size check.
Diffstat (limited to 'src/other_tools/git_operations')
-rw-r--r-- | src/other_tools/git_operations/git_ops_types.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/other_tools/git_operations/git_ops_types.hpp b/src/other_tools/git_operations/git_ops_types.hpp index 2c60b086..0b9f50c4 100644 --- a/src/other_tools/git_operations/git_ops_types.hpp +++ b/src/other_tools/git_operations/git_ops_types.hpp @@ -15,6 +15,7 @@ #ifndef INCLUDED_SRC_OTHER_TOOLS_GIT_OPERATIONS_GIT_OPS_TYPES_HPP #define INCLUDED_SRC_OTHER_TOOLS_GIT_OPERATIONS_GIT_OPS_TYPES_HPP +#include <cstdint> #include <filesystem> #include <optional> #include <string> @@ -53,7 +54,7 @@ struct GitOpParams { }; /// \brief Defines the type of Git operation -enum class GitOpType { +enum class GitOpType : std::uint8_t { DEFAULT_OP, // default value; does nothing INITIAL_COMMIT, ENSURE_INIT, |