Procházet zdrojové kódy

*: linter directives

Michele Caini před 1 rokem
rodič
revize
cdb1f23cbb
2 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 1 0
      src/entt/container/dense_map.hpp
  2. 1 0
      src/entt/core/any.hpp

+ 1 - 0
src/entt/container/dense_map.hpp

@@ -268,6 +268,7 @@ class dense_map {
 
 
     template<typename Other>
     template<typename Other>
     [[nodiscard]] std::size_t key_to_bucket(const Other &key) const noexcept {
     [[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<size_type>(sparse.second()(key)), bucket_count());
         return fast_mod(static_cast<size_type>(sparse.second()(key)), bucket_count());
     }
     }
 
 

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

@@ -132,6 +132,7 @@ class basic_any {
                 if constexpr(std::is_aggregate_v<plain_type> && (sizeof...(Args) != 0u || !std::is_default_constructible_v<plain_type>)) {
                 if constexpr(std::is_aggregate_v<plain_type> && (sizeof...(Args) != 0u || !std::is_default_constructible_v<plain_type>)) {
                     ::new(&storage) plain_type{std::forward<Args>(args)...};
                     ::new(&storage) plain_type{std::forward<Args>(args)...};
                 } else {
                 } else {
+                    // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-array-to-pointer-decay)
                     ::new(&storage) plain_type(std::forward<Args>(args)...);
                     ::new(&storage) plain_type(std::forward<Args>(args)...);
                 }
                 }
             } else {
             } else {