From 9b0a439d42b4a6fa8d4c457c953b71d7938aaa37 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 6 Feb 2024 03:42:19 +0100 Subject: add NOLINT for assert macros --- compat/assert.hpp | 2 +- compat/exception.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'compat') diff --git a/compat/assert.hpp b/compat/assert.hpp index d72186ea..8affc664 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -61,7 +61,7 @@ #define fm_assert(...) \ do { \ - if (!(__VA_ARGS__)) [[unlikely]] { \ + if (!(__VA_ARGS__)) /*NOLINT(*-simplify-boolean-expr)*/ [[unlikely]] { \ fm_EMIT_DEBUG("", "assertion failed: %s in %s:%d", \ #__VA_ARGS__, __FILE__, __LINE__); \ fm_EMIT_ABORT(); \ diff --git a/compat/exception.hpp b/compat/exception.hpp index dcc5ee5f..8a5f34fb 100644 --- a/compat/exception.hpp +++ b/compat/exception.hpp @@ -31,7 +31,7 @@ exception::exception(const Fmt& fmt, Ts&&... args) noexcept #define fm_soft_assert(...) \ do { \ - if (!(__VA_ARGS__)) \ + if (!(__VA_ARGS__)) /*NOLINT(*-simplify-boolean-expr)*/ \ { \ if (std::is_constant_evaluated()) \ throw ::floormat::base_exception{}; \ -- cgit v1.2.3