From b4fa2458b7c1d4d2d2ca69c54e60cdd2be222667 Mon Sep 17 00:00:00 2001 From: Vladimir Chistyakov Date: Mon, 22 Jun 2026 23:57:47 +0700 Subject: [PATCH] style: modernize clang-tidy config --- .clang-tidy | 89 +++++++++++++++++++++++------------------------------ 1 file changed, 38 insertions(+), 51 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 47df391..714541c 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,56 +1,43 @@ --- -Checks: > - *, - -abseil-*, - abseil-no-namespace, - -altera-struct-pack-align, - -altera-unroll-loops, - -android-cloexec-fopen, - -cppcoreguidelines-owning-memory, - -darwin-*, - -fuchsia-*, - fuchsia-statically-constructed-objects, - fuchsia-trailing-return, - -google-readability-todo, - -hicpp-named-parameter, - -llvm-header-guard, - -llvmlibc-*, - -modernize-use-trailing-return-type, - -portability-avoid-pragma-once, - -readability-identifier-length, - -readability-named-parameter, +Checks: + - '*' + - -altera-struct-pack-align + - -altera-unroll-loops + - -boost-use-ranges + - -cppcoreguidelines-avoid-magic-numbers + - -cppcoreguidelines-owning-memory + - -fuchsia-default-arguments-calls + - -fuchsia-default-arguments-declarations + - -fuchsia-overloaded-operator + - -google-readability-todo + - -hicpp-named-parameter + - -llvm-header-guard + - -llvm-prefer-static-over-anonymous-namespace + - -llvm-use-ranges + - -llvmlibc-* + - -modernize-use-trailing-return-type + - -performance-enum-size + - -portability-avoid-pragma-once + - -readability-identifier-length + - -readability-magic-numbers + - -readability-named-parameter WarningsAsErrors: '' HeaderFilterRegex: '' -FormatStyle: none +FormatStyle: file CheckOptions: - - key: bugprone-exception-escape.FunctionsThatShouldNotThrow - value: 'WinMain;wWinMain' - - key: bugprone-misplaced-widening-cast.CheckImplicitCasts - value: 'true' - - key: bugprone-suspicious-enum-usage.StrictMode - value: 'true' - - key: cppcoreguidelines-avoid-do-while.IgnoreMacros - value: 'true' - - key: cppcoreguidelines-narrowing-conversions.PedanticMode - value: 'true' - - key: google-runtime-int.UnsignedTypePrefix - value: 'std::uint' - - key: google-runtime-int.SignedTypePrefix - value: 'std::int' - - key: google-runtime-int.TypeSuffix - value: '_t' - - key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic - value: 'true' - - key: readability-uppercase-literal-suffix.NewSuffixes - value: 'L;LL;LU;LLU' - - key: readability-identifier-naming.AggressiveDependentMemberLookup - value: 'true' - - key: readability-identifier-naming.TemplateParameterCase - value: CamelCase - - key: readability-identifier-naming.MacroDefinitionCase - value: UPPER_CASE - - key: readability-implicit-bool-conversion.AllowIntegerConditions - value: 'true' - - key: readability-implicit-bool-conversion.AllowPointerConditions - value: 'true' + bugprone-exception-escape.FunctionsThatShouldNotThrow: WinMain;wWinMain + bugprone-narrowing-conversions.PedanticMode: true + bugprone-misplaced-widening-cast.CheckImplicitCasts: true + bugprone-suspicious-enum-usage.StrictMode: true + cppcoreguidelines-avoid-do-while.IgnoreMacros: true + google-runtime-int.UnsignedTypePrefix: std::uint + google-runtime-int.SignedTypePrefix: std::int + google-runtime-int.TypeSuffix: _t + misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: true + readability-identifier-naming.AggressiveDependentMemberLookup: true + readability-identifier-naming.TemplateParameterCase: CamelCase + readability-identifier-naming.MacroDefinitionCase: UPPER_CASE + readability-implicit-bool-conversion.AllowIntegerConditions: true + readability-implicit-bool-conversion.AllowPointerConditions: true + readability-uppercase-literal-suffix.NewSuffixes: L;LL;LU;LLU ...