Răsfoiți Sursa

meta: linter related stuff

Michele Caini 2 ani în urmă
părinte
comite
f5a8feb47f
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      src/entt/meta/meta.hpp
  2. 1 1
      src/entt/meta/utility.hpp

+ 1 - 1
src/entt/meta/meta.hpp

@@ -1254,7 +1254,7 @@ public:
      * doesn't refer to a pointer type.
      */
     [[nodiscard]] meta_type remove_pointer() const noexcept {
-        return {*ctx, node.remove_pointer(internal::meta_context::from(*ctx))};
+        return {*ctx, node.remove_pointer(internal::meta_context::from(*ctx))}; // NOLINT
     }
 
     /**

+ 1 - 1
src/entt/meta/utility.hpp

@@ -335,7 +335,7 @@ template<typename Type, typename Policy, typename Candidate, std::size_t... Inde
             return meta_invoke_with_args<Policy>(ctx, std::forward<Candidate>(candidate), *clazz, (args + Index)->cast<type_list_element_t<Index, typename descriptor::args_type>>()...);
         }
     } else if constexpr(std::is_invocable_v<std::remove_reference_t<Candidate>, Type &, type_list_element_t<Index, typename descriptor::args_type>...>) {
-        if(auto *const clazz = instance->try_cast<Type>(); clazz && ((args + Index)->allow_cast<type_list_element_t<Index, typename descriptor::args_type>>() && ...)) {
+        if(auto *const clazz = instance->try_cast<Type>(); clazz && ((args + Index)->allow_cast<type_list_element_t<Index, typename descriptor::args_type>>() && ...)) { // NOLINT
             return meta_invoke_with_args<Policy>(ctx, std::forward<Candidate>(candidate), *clazz, (args + Index)->cast<type_list_element_t<Index, typename descriptor::args_type>>()...);
         }
     } else {