Browse Source

core: instruct the linter

Michele Caini 1 year ago
parent
commit
4ed58d2230
2 changed files with 4 additions and 0 deletions
  1. 2 0
      src/entt/core/type_info.hpp
  2. 2 0
      src/entt/core/type_traits.hpp

+ 2 - 0
src/entt/core/type_info.hpp

@@ -136,10 +136,12 @@ struct type_info final {
      * @tparam Type Type for which to construct a type info object.
      */
     template<typename Type>
+    // NOLINTBEGIN(modernize-use-transparent-functors)
     constexpr type_info(std::in_place_type_t<Type>) noexcept
         : seq{type_index<std::remove_cv_t<std::remove_reference_t<Type>>>::value()},
           identifier{type_hash<std::remove_cv_t<std::remove_reference_t<Type>>>::value()},
           alias{type_name<std::remove_cv_t<std::remove_reference_t<Type>>>::value()} {}
+    // NOLINTEND(modernize-use-transparent-functors)
 
     /**
      * @brief Type index.

+ 2 - 0
src/entt/core/type_traits.hpp

@@ -769,6 +769,7 @@ template<typename Type>
 
 template<typename Type>
 [[nodiscard]] constexpr bool dispatch_is_equality_comparable() {
+    // NOLINTBEGIN(modernize-use-transparent-functors)
     if constexpr(std::is_array_v<Type>) {
         return false;
     } else if constexpr(!is_iterator_v<Type> && has_value_type<Type>::value) {
@@ -786,6 +787,7 @@ template<typename Type>
     } else {
         return maybe_equality_comparable<Type>(0);
     }
+    // NOLINTEND(modernize-use-transparent-functors)
 }
 
 } // namespace internal