From 832f67e91c8b01614a1e08e4e7039e82d541af5d Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Thu, 10 Jul 2025 21:28:54 -0700 Subject: [PATCH] Disable a few new modernize clang-tidy checkers, enabled by C++20 --- .clang-tidy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index f4b83da5f5..9bc2fc61ac 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -16,6 +16,7 @@ Checks: [-*, -bugprone-unchecked-optional-access, -performance-unnecessary-value-param, -modernize-use-equals-default, + -modernize-use-integer-sign-comparison, # The following cause either lots of pointless or advisory warnings -bugprone-easily-swappable-parameters, @@ -43,6 +44,7 @@ Checks: [-*, -modernize-use-nodiscard, -modernize-use-ranges, -modernize-use-trailing-return-type, + -modernize-use-designated-initializers, # This one returns a bunch of findings in DFA and the sqlite library. # We're unlikely to fix either of them. @@ -64,6 +66,10 @@ Checks: [-*, -modernize-use-std-format, -modernize-use-std-numbers, -modernize-use-std-print, + + # C++20 supports constraints but until Spicy supports building with C++20 + # this one has to stay disabled. + -modernize-use-constraints, ] HeaderFilterRegex: '.h'