summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/common/execution_action.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/execution_api/common/execution_action.hpp
parent5baab75fd2ae62b6f6407991922fe234f9e73c88 (diff)
downloadjustbuild-4ae83890ce3a82e1f9a716971aaa69591f0cf6cb.tar.gz
Fix enum sizes proposed by clang-tidy.
Enable performance-enum-size check.
Diffstat (limited to 'src/buildtool/execution_api/common/execution_action.hpp')
-rw-r--r--src/buildtool/execution_api/common/execution_action.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/common/execution_action.hpp b/src/buildtool/execution_api/common/execution_action.hpp
index 649c634c..a5284ca1 100644
--- a/src/buildtool/execution_api/common/execution_action.hpp
+++ b/src/buildtool/execution_api/common/execution_action.hpp
@@ -16,6 +16,7 @@
#define INCLUDED_SRC_BUILDTOOL_EXECUTION_API_COMMON_REMOTE_EXECUTION_ACTION_HPP
#include <chrono>
+#include <cstdint>
#include <memory>
#include "gsl/gsl"
@@ -31,7 +32,7 @@ class IExecutionAction {
public:
using Ptr = std::unique_ptr<IExecutionAction>;
- enum class CacheFlag {
+ enum class CacheFlag : std::uint8_t {
CacheOutput, ///< run and cache, or serve from cache
DoNotCacheOutput, ///< run and do not cache, never served from cached
FromCacheOnly, ///< do not run, only serve from cache