From cdb1f23cbba5044e931b95a34d150ba4d8d39dbc Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 2 Aug 2024 17:06:50 +0200 Subject: [PATCH] *: linter directives --- src/entt/container/dense_map.hpp | 1 + src/entt/core/any.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/entt/container/dense_map.hpp b/src/entt/container/dense_map.hpp index 6bf7238c9..3cc20c75c 100644 --- a/src/entt/container/dense_map.hpp +++ b/src/entt/container/dense_map.hpp @@ -268,6 +268,7 @@ class dense_map { template [[nodiscard]] std::size_t key_to_bucket(const Other &key) const noexcept { + // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-array-to-pointer-decay) return fast_mod(static_cast(sparse.second()(key)), bucket_count()); } diff --git a/src/entt/core/any.hpp b/src/entt/core/any.hpp index 65d87368e..11ffab52b 100644 --- a/src/entt/core/any.hpp +++ b/src/entt/core/any.hpp @@ -132,6 +132,7 @@ class basic_any { if constexpr(std::is_aggregate_v && (sizeof...(Args) != 0u || !std::is_default_constructible_v)) { ::new(&storage) plain_type{std::forward(args)...}; } else { + // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-array-to-pointer-decay) ::new(&storage) plain_type(std::forward(args)...); } } else {