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/buildtool/main/build_utils.hpp | |
parent | 5baab75fd2ae62b6f6407991922fe234f9e73c88 (diff) | |
download | justbuild-4ae83890ce3a82e1f9a716971aaa69591f0cf6cb.tar.gz |
Fix enum sizes proposed by clang-tidy.
Enable performance-enum-size check.
Diffstat (limited to 'src/buildtool/main/build_utils.hpp')
-rw-r--r-- | src/buildtool/main/build_utils.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/main/build_utils.hpp b/src/buildtool/main/build_utils.hpp index 2ea69025..f8f0a470 100644 --- a/src/buildtool/main/build_utils.hpp +++ b/src/buildtool/main/build_utils.hpp @@ -16,6 +16,7 @@ #define INCLUDED_SRC_BUILDOOL_MAIN_BUILD_UTILS_HPP #include <cstddef> +#include <cstdint> #include <functional> #include <map> #include <optional> @@ -47,7 +48,7 @@ std::unordered_map<TargetCacheKey, AnalysedTargetPtr> const& cache_targets) -> std::vector<ArtifactDescription>; -enum class TargetCacheWriteStrategy { +enum class TargetCacheWriteStrategy : std::uint8_t { Disable, ///< Do not create target-level cache entries Sync, ///< Create target-level cache entries after syncing the artifacts Split ///< Create target-level cache entries after syncing the artifacts; |