From 52e28c02c3317ae0f93fcdc24b97ec6785801759 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 10 Sep 2026 20:03:26 +0000 Subject: [PATCH] Disable readability-identifier-naming in clang-tidy 24 (#7752) This check allows styles that we don't use so it's not really useful for enforcing our style guide. And prevents the use of `_1` or similar in destructuring declarations where want to use `_` for multiple variables, such as `auto [_1, _2, foo] = bar()`. --- .clang-tidy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index 05de9380c8c9..7164b472ee3c 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -104,6 +104,9 @@ Checks: - '-readability-enum-initial-value' # Warns too frequently. - '-readability-function-cognitive-complexity' + # Allows naming styles we don't use, and has errors on our use of `_1`, `_2` + # to have multiple unnamed vars in a destructuring declaration. + - '-readability-identifier-naming' # Warns on use of CARBON_KIND() and can't use NOLINT effectively inside a # macro. - '-readability-inconsistent-ifelse-braces'