From fd363391744329a4418789e127741b947cb7da88 Mon Sep 17 00:00:00 2001 From: Daniel Frey Date: Sun, 17 Dec 2023 21:55:08 +0100 Subject: [PATCH] disable clang-format here, as different versions disagree on this part --- include/tao/pq/parameter_traits.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/tao/pq/parameter_traits.hpp b/include/tao/pq/parameter_traits.hpp index cddc4d6..93a344c 100644 --- a/include/tao/pq/parameter_traits.hpp +++ b/include/tao/pq/parameter_traits.hpp @@ -42,6 +42,7 @@ namespace tao::pq assert( result > 0 ); assert( static_cast< std::size_t >( result ) < N ); } + // clang-format off else if( std::isnan( v ) ) { #if defined( _MSC_VER ) [[maybe_unused]] const auto result = strncpy_s( buffer, "NAN", N ); @@ -58,6 +59,7 @@ namespace tao::pq std::strcpy( buffer, ( v < 0 ) ? "-INF" : "INF" ); // NOLINT(clang-analyzer-security.insecureAPI.strcpy) #endif } + // clang-format on } } // namespace internal