From 3eeee12b5795ee6318ea36a64cf5503f5e0a67c3 Mon Sep 17 00:00:00 2001 From: Chun Cai Date: Mon, 27 May 2024 16:08:00 +0800 Subject: [PATCH] Update clang-tidy config. #4015 --- .clang-tidy | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index b086a552da..f57b4d9b98 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,6 +1,5 @@ --- Checks: ' - -*, bugprone-*, clang-analyzer-*, clang-diagnostic-*, @@ -14,22 +13,29 @@ Checks: ' misc-*, modernize-deprecated-headers, modernize-redundant-void-arg, - modernize-use-nullptr, - modernize-use-bool-literals, - modernize-use-auto, - modernize-use-std-numbers, - modernize-pass-by-value, modernize-shrink-to-fit, + modernize-use-bool-literals, + modernize-use-nullptr, + modernize-use-starts-ends-with, mpi-*, performance-*, -performance-avoid-endl, readability-*, + -readability-else-after-return, -readability-magic-numbers, -readability-isolate-declaration, -readability-braces-around-statements, -readability-implicit-bool-conversion, -google-readability-braces-around-statements, -misc-unused-parameters, + -modernize-pass-by-value, + -modernize-use-auto, + -google-readability-casting, + -readability-make-member-function-const, + -cppcoreguidelines-avoid-non-const-global-variables, + -readability-function-cognitive-complexity, + -google-build-using-namespace, + -bugprone-narrowing-conversions, ' FormatStyle: file ...