Browse Source

clang-tidy: suppress ok-ish warning

skypjack 9 months ago
parent
commit
e2ef08f129
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/entt/core/hashed_string.hpp

+ 1 - 0
src/entt/core/hashed_string.hpp

@@ -133,6 +133,7 @@ public:
     template<std::size_t N>
     // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays, modernize-avoid-c-arrays)
     ENTT_CONSTEVAL basic_hashed_string(const value_type (&str)[N]) noexcept
+        // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-array-to-pointer-decay)
         : base_type{str} {
         for(; str[base_type::length]; ++base_type::length) {
             base_type::hash = (base_type::hash ^ static_cast<id_type>(str[base_type::length])) * params::prime;