mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
AK: Remove clang-tidy
warnings for ASSERT(a || b)
lines
Lines like these were getting a warning to simplify the expanded boolean expression from `!(a || b)` to `(a && b)`, but since the `!(...)` is part of the macro, that is never going to happen.
This commit is contained in:
parent
0fa54c2327
commit
0de15264ab
Notes:
github-actions[bot]
2024-12-04 16:48:07 +00:00
Author: https://github.com/yyny Commit: https://github.com/LadybirdBrowser/ladybird/commit/0de15264ab8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2454 Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ static constexpr bool TODO = false;
|
|||
extern "C" __attribute__((noreturn)) void ak_assertion_failed(char const*);
|
||||
#ifndef NDEBUG
|
||||
# define ASSERT(expr) \
|
||||
(__builtin_expect(!(expr), 0) \
|
||||
(__builtin_expect(/* NOLINT(readability-simplify-boolean-expr) */ !(expr), 0) \
|
||||
? ak_assertion_failed(#expr " at " __FILE__ ":" __stringify(__LINE__)) \
|
||||
: (void)0)
|
||||
# define ASSERT_NOT_REACHED ASSERT(false) /* NOLINT(cert-dcl03-c,misc-static-assert) No, this can't be static_assert, it's a runtime check */
|
||||
|
|
Loading…
Reference in a new issue