mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
AK: Suppress clang-tidy warning on TODO()
This adds a NOLINT directive to the definition of the TODO() macro. clang-tidy wants the assert replaced with a static_assert, since the macro simply resolves to assert(false). This is obviously nonsensical, since we want the code to still compile even with TODO(). The same fix has already been implemented for VERIFY_NOT_REACHED().
This commit is contained in:
parent
6448964485
commit
d29d9462e9
Notes:
sideshowbarker
2024-07-17 18:26:05 +09:00
Author: https://github.com/MaxWipfli Commit: https://github.com/SerenityOS/serenity/commit/d29d9462e9 Pull-request: https://github.com/SerenityOS/serenity/pull/12702
1 changed files with 1 additions and 1 deletions
|
@ -13,5 +13,5 @@
|
|||
# define VERIFY assert
|
||||
# define VERIFY_NOT_REACHED() assert(false) /* NOLINT(cert-dcl03-c,misc-static-assert) No, this can't be static_assert, it's a runtime check */
|
||||
static constexpr bool TODO = false;
|
||||
# define TODO() VERIFY(TODO)
|
||||
# define TODO() VERIFY(TODO) /* NOLINT(cert-dcl03-c,misc-static-assert) No, this can't be static_assert, it's a runtime check */
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue