From 17868940ee6e977a511cdf88bd2fb1abff2b6d76 Mon Sep 17 00:00:00 2001 From: Igor Krivenko Date: Mon, 13 May 2024 17:06:37 +0200 Subject: [PATCH] clang-tidy: Suppres `modernize-type-traits` --- include/libcommute/expression/expression.hpp | 1 + include/libcommute/expression/monomial.hpp | 3 ++- include/libcommute/metafunctions.hpp | 1 + include/libcommute/scalar_traits.hpp | 1 + include/libcommute/utility.hpp | 7 +++++++ test/check_ordering.hpp | 2 ++ test/factories_dyn.cpp | 1 + 7 files changed, 15 insertions(+), 1 deletion(-) diff --git a/include/libcommute/expression/expression.hpp b/include/libcommute/expression/expression.hpp index b01897c..b2a5893 100644 --- a/include/libcommute/expression/expression.hpp +++ b/include/libcommute/expression/expression.hpp @@ -65,6 +65,7 @@ template class expression { // Disable overload for expressions template using disable_for_expression = + // NOLINTNEXTLINE(modernize-type-traits) typename std::enable_if::value>::type; public: diff --git a/include/libcommute/expression/monomial.hpp b/include/libcommute/expression/monomial.hpp index 87ba88b..4ebe323 100644 --- a/include/libcommute/expression/monomial.hpp +++ b/include/libcommute/expression/monomial.hpp @@ -40,6 +40,7 @@ template class monomial { // Helper method for one of constructors template void constructor_impl(GenType1&& generator, GenTypesTail&&... more_gens) { + // NOLINTNEXTLINE(modernize-type-traits) using gen1_t = typename std::remove_reference::type; generators_.emplace_back( make_unique(std::forward(generator))); @@ -62,7 +63,7 @@ template class monomial { // Construct from a list of >=1 generators template ::value>::type> explicit monomial(GenTypes&&... generators) { constructor_impl(std::forward(generators)...); diff --git a/include/libcommute/metafunctions.hpp b/include/libcommute/metafunctions.hpp index 302456b..32f11ca 100644 --- a/include/libcommute/metafunctions.hpp +++ b/include/libcommute/metafunctions.hpp @@ -43,6 +43,7 @@ using std::make_unique; template struct remove_cvref { using type = + // NOLINTNEXTLINE(modernize-type-traits) typename std::remove_cv::type>::type; }; template using remove_cvref_t = typename remove_cvref::type; diff --git a/include/libcommute/scalar_traits.hpp b/include/libcommute/scalar_traits.hpp index 1a33b24..f79557c 100644 --- a/include/libcommute/scalar_traits.hpp +++ b/include/libcommute/scalar_traits.hpp @@ -36,6 +36,7 @@ template struct is_complex> : std::true_type {}; // Enable template instantiation if Trait::value is true template