Skip to content

Commit

Permalink
fix .clang-tidy config error
Browse files Browse the repository at this point in the history
AnalyzeTemporaryDtors be removed for clang-18
llvm/llvm-project#62020
  • Loading branch information
suoyuan666 committed Nov 13, 2024
1 parent 79e7a43 commit 9cc90f4
Showing 1 changed file with 17 additions and 38 deletions.
55 changes: 17 additions & 38 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,39 +1,19 @@
Checks: '
hicpp-*
misc-*
bugprone-*,
clang-analyzer-*,
google-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-bugprone-easily-swappable-parameters,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-narrowing-conversions,
-bugprone-reserved-identifier,
-bugprone-signed-char-misuse,
-bugprone-suspicious-include,
-bugprone-unhandled-self-assignment,
# -clang-analyzer-cplusplus.NewDelete,
# -clang-analyzer-cplusplus.NewDeleteLeaks,
# -clang-analyzer-security.insecureAPI.rand,
-clang-diagnostic-implicit-int-float-conversion,
-google-readability-avoid-underscore-in-googletest-name,
-modernize-avoid-c-arrays,
-modernize-use-nodiscard,
-readability-convert-member-functions-to-static,
-readability-identifier-length,
-readability-function-cognitive-complexity,
-readability-magic-numbers,
-readability-make-member-function-const,
-readability-qualified-auto,
-readability-identifier-naming,
-readability-redundant-access-specifiers,
-bugprone-exception-escape,
-performance-avoid-endl,
-readability-use-anyofallof,
'
Checks: '*,
-llvm-*,
-llvmlibc-*,
-fuchsia-*,
-cppcoreguidelines-*,
cppcoreguidelines-explicit-virtual-functions,
cppcoreguidelines-special-member-functions,
-cert-err58-cpp,
-cert-env33-c,
-cert-dcl37-c,
-cert-dcl51-cpp,
-readability-magic-numbers,
-readability-function-cognitive-complexity,
-misc-no-recursion,
-bugprone-exception-escape,
'
CheckOptions:
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.EnumCase, value: CamelCase }
Expand All @@ -46,5 +26,4 @@ CheckOptions:
- { key: readability-identifier-naming.UnionCase, value: CamelCase }
- { key: readability-identifier-naming.VariableCase, value: lower_case }
WarningsAsErrors: '*'
HeaderFilterRegex: '/(src|test)/include'
AnalyzeTemporaryDtors: true
HeaderFilterRegex: '/(src|test)/include'

0 comments on commit 9cc90f4

Please sign in to comment.