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_response.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/buildtool/execution_api/common/execution_response.hpp') diff --git a/src/buildtool/execution_api/common/execution_response.hpp b/src/buildtool/execution_api/common/execution_response.hpp index c0aa16f8..90c67317 100644 --- a/src/buildtool/execution_api/common/execution_response.hpp +++ b/src/buildtool/execution_api/common/execution_response.hpp @@ -15,6 +15,7 @@ #ifndef INCLUDED_SRC_BUILDTOOL_EXECUTION_API_COMMON_REMOTE_EXECUTION_RESPONSE_HPP #define INCLUDED_SRC_BUILDTOOL_EXECUTION_API_COMMON_REMOTE_EXECUTION_RESPONSE_HPP +#include #include #include #include @@ -35,7 +36,7 @@ class IExecutionResponse { // set of paths found in output_directory_symlinks list of the action result using DirSymlinks = std::unordered_set; - enum class StatusCode { Failed, Success }; + enum class StatusCode : std::uint8_t { Failed, Success }; IExecutionResponse() = default; IExecutionResponse(IExecutionResponse const&) = delete; -- cgit v1.2.3