summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-09-12 11:27:31 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-09-12 16:26:40 +0200
commit6dba91abb5696f9c0cb905c0e820dbad91d63dd4 (patch)
tree1c6713f385d7043647f2cf219f07e3359ca22cd8
parentafe358a2d0aef7b4f312f07db83f5af3424358e9 (diff)
downloadjustbuild-6dba91abb5696f9c0cb905c0e820dbad91d63dd4.tar.gz
.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.
-rw-r--r--.clang-tidy3
1 files changed, 2 insertions, 1 deletions
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
+]