From a3a104f97a833dc489788de04393aaed033b7eab Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 2 Jan 2025 16:22:44 +0100 Subject: [PATCH] Clang Tidy: Ignore some newer readability warnings These patterns are very common throughout the Blender codebase, which makes the clang-tidy output and using clangd in an IDE quite noisy. They were introduced in LLVM version 18 and 19. * readability-math-missing-parentheses * readability-avoid-nested-conditional-operator * readability-enum-initial-value * readability-avoid-unconditional-preprocessor-if Pull Request: https://projects.blender.org/blender/blender/pulls/132462 --- .clang-tidy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index d96ad4feba0..21f253c437d 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -19,6 +19,10 @@ Checks: > -readability-misleading-indentation, -readability-use-anyofallof, -readability-identifier-length, + -readability-enum-initial-value, + -readability-math-missing-parentheses, + -readability-avoid-nested-conditional-operator, + -readability-avoid-unconditional-preprocessor-if, -readability-function-cognitive-complexity,