summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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{}; \