From 046e0956eeb35e4688daf4eb76461e0a73727be4 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Wed, 25 Sep 2024 15:20:24 +0200 Subject: [PATCH] build: fix or silence new clang-tidy warnings --- .clang-tidy | 3 +++ src/nvim/event/loop.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index b7888a1fcf..28115ae0b1 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -35,6 +35,7 @@ Checks: > -modernize-macro-to-enum, -readability-avoid-nested-conditional-operator, -readability-else-after-return, + -readability-enum-initial-value, -readability-function-size, -readability-isolate-declaration, @@ -56,6 +57,7 @@ Checks: > -readability-function-cognitive-complexity, -readability-identifier-length, -readability-magic-numbers, + -readability-math-missing-parentheses, -readability-redundant-declaration, Conflicts with our header generation scripts, -readability-suspicious-call-argument, @@ -65,6 +67,7 @@ Checks: > -cert-dcl51-cpp, -cert-exp42-c, -cert-flp37-c, + -cert-int09-c, -cert-msc24-c, -cert-msc33-c, -cppcoreguidelines-avoid-magic-numbers, diff --git a/src/nvim/event/loop.h b/src/nvim/event/loop.h index da4852b836..b86e83de3c 100644 --- a/src/nvim/event/loop.h +++ b/src/nvim/event/loop.h @@ -9,8 +9,8 @@ typedef void *WatcherPtr; -#define _NOOP(x) -KLIST_INIT(WatcherPtr, WatcherPtr, _NOOP) +#define NOOP(x) +KLIST_INIT(WatcherPtr, WatcherPtr, NOOP) struct loop { uv_loop_t uv;