From 6dba91abb5696f9c0cb905c0e820dbad91d63dd4 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 12 Sep 2024 11:27:31 +0200 Subject: .clang-tidy: update to newer version In newer versions of clang-tidy, more checks were added while also more became warnings by default. Therefore, add an explicit WarningsAsErrors for some checks we're currently complying with in our sources, to avoid regressing there. Besides some tests where we're not there yet, we also have to disable some checks with too many false positives. --- .clang-tidy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index 7f632b63..1d5ffaf5 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,8 +1,9 @@ FormatStyle: Google Checks: '*,-abseil-*,-altera-*,-android-*,-boost-*,-cert-*,-darwin-*,-fuchsia-*,-linuxkernel-*,-llvm-*,-llvmlibc-*,-mpi-*,-objc-*,-zircon-*' +WarningsAsErrors: 'clang-diagnostic-*,-clang-diagnostic-unused-command-line-argument,clang-analyzer-*,-clang-analyzer-cplusplus.NewDeleteLeaks,-clang-analyzer-cplusplus.StringChecker,bugprone-*,-bugprone-easily-swappable-parameters,-bugprone-unchecked-optional-access,-bugprone-narrowing-conversions,-bugprone-unhandled-exception-at-new,-bugprone-empty-catch,-bugprone-optional-value-conversion,-bugprone-implicit-widening-of-multiplication-result,-bugprone-inc-dec-in-conditions,-bugprone-assignment-in-if-condition,-bugprone-exception-escape' CheckOptions: [ { key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic, value: '1' } -] \ No newline at end of file +] -- cgit v1.2.3