summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-06 03:42:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-06 03:52:00 +0100
commit9b0a439d42b4a6fa8d4c457c953b71d7938aaa37 (patch)
tree6e65b8775c397196e31762e6cbd39b5f6703c9e2 /compat
parentb25289daa8349f21b2b64a0fbaf331dc94753c8c (diff)
add NOLINT for assert macros
Diffstat (limited to 'compat')
-rw-r--r--compat/assert.hpp2
-rw-r--r--compat/exception.hpp2
2 files changed, 2 insertions, 2 deletions
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{}; \