meta: drop a bunch of NOLINT

This commit is contained in:
Michele Caini
2024-02-08 10:12:28 +01:00
parent ee78d39860
commit 6f7839f8c4
2 changed files with 2 additions and 2 deletions

View File

@@ -1248,7 +1248,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))}; // NOLINT
return {*ctx, node.remove_pointer(internal::meta_context::from(*ctx))};
}
/**

View File

@@ -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>>() && ...)) { // NOLINT
if(auto *const clazz = instance->try_cast<Type>(); clazz && ((args + Index)->allow_cast<type_list_element_t<Index, typename descriptor::args_type>>() && ...)) {
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 {