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/execution_api/common/execution_action.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/buildtool/execution_api/common/execution_action.hpp') 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 +#include #include #include "gsl/gsl" @@ -31,7 +32,7 @@ class IExecutionAction { public: using Ptr = std::unique_ptr; - 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 -- cgit v1.2.3