From 804dc3baafdd92df02622db9104d22bf261c3f5c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 10 Sep 2026 19:12:54 +0000 Subject: [PATCH] Disable readability-use-concise-preprocessor-directives in clang-tidy 24 (#7754) While we do adhere to its expectations most of the time, we don't always. This is a low value check, and it's a stylistic choice to use `#if defined(...)` when paired with `#elif defined(...)`. --- .clang-tidy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index 64990c48fc39..6af68c74f6e1 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -115,6 +115,9 @@ Checks: - '-readability-redundant-parentheses' # Warns when callers use similar names as different parameters. - '-readability-suspicious-call-argument' + # Low value check, and it's a stylistic choice to use `#if defined(...)` when + # paired with `#elif defined(...)`. + - '-readability-use-concise-preprocessor-directives' CheckOptions: # Don't warn on structs; done by ignoring when there are only public members.