Skip to content

Commit

Permalink
disable clang-format here, as different versions disagree on this part
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Dec 17, 2023
1 parent 5b5beaa commit fd36339
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/tao/pq/parameter_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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
Expand Down

0 comments on commit fd36339

Please sign in to comment.