aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy3
-rw-r--r--bindings/cpp/include/.clang-tidy2
-rw-r--r--examples/.clang-tidy5
-rw-r--r--examples/cube_view.h2
-rw-r--r--meson/suppressions/meson.build3
-rw-r--r--src/.clang-tidy4
-rw-r--r--test/.clang-tidy4
-rw-r--r--test/test_timer.c2
8 files changed, 17 insertions, 8 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 7f81150..9af40ce 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -1,4 +1,4 @@
-# Copyright 2020-2022 David Robillard <d@drobilla.net>
+# Copyright 2020-2024 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
Checks: >
@@ -11,6 +11,7 @@ Checks: >
-clang-diagnostic-unused-macros,
-llvmlibc-*,
-misc-include-cleaner,
+ -readability-avoid-nested-conditional-operator,
-readability-identifier-length,
CheckOptions:
- key: hicpp-uppercase-literal-suffix.NewSuffixes
diff --git a/bindings/cpp/include/.clang-tidy b/bindings/cpp/include/.clang-tidy
index b7cee8e..f31247a 100644
--- a/bindings/cpp/include/.clang-tidy
+++ b/bindings/cpp/include/.clang-tidy
@@ -1,4 +1,4 @@
-# Copyright 2020-2022 David Robillard <d@drobilla.net>
+# Copyright 2020-2024 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
Checks: >
diff --git a/examples/.clang-tidy b/examples/.clang-tidy
index 7dde8bb..cba7eda 100644
--- a/examples/.clang-tidy
+++ b/examples/.clang-tidy
@@ -1,4 +1,4 @@
-# Copyright 2020-2023 David Robillard <d@drobilla.net>
+# Copyright 2020-2024 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
Checks: >
@@ -8,6 +8,7 @@ Checks: >
-android-cloexec-fopen,
-bugprone-easily-swappable-parameters,
-bugprone-macro-parentheses,
+ -bugprone-multi-level-implicit-pointer-conversion,
-bugprone-reserved-identifier,
-bugprone-suspicious-string-compare,
-cert-dcl37-c,
@@ -34,9 +35,11 @@ Checks: >
-llvm-header-guard,
-misc-misplaced-const,
-modernize-use-trailing-return-type,
+ -performance-enum-size,
-performance-no-int-to-ptr,
-readability-function-cognitive-complexity,
-readability-implicit-bool-conversion,
+ -readability-redundant-member-init,
CheckOptions:
- key: cppcoreguidelines-avoid-do-while.IgnoreMacros
value: true
diff --git a/examples/cube_view.h b/examples/cube_view.h
index 399f625..6941870 100644
--- a/examples/cube_view.h
+++ b/examples/cube_view.h
@@ -4,7 +4,7 @@
#ifndef EXAMPLES_CUBE_VIEW_H
#define EXAMPLES_CUBE_VIEW_H
-#define GL_SILENCE_DEPRECATION 1 // NOLINT(modernize-macro-to-enum)
+#define GL_SILENCE_DEPRECATION 1 // NOLINT(*-macro-to-enum)
#include "demo_utils.h"
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index 270e64e..df94bcf 100644
--- a/meson/suppressions/meson.build
+++ b/meson/suppressions/meson.build
@@ -1,4 +1,4 @@
-# Copyright 2020-2023 David Robillard <d@drobilla.net>
+# Copyright 2020-2024 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
# Project-specific warning suppressions
@@ -121,6 +121,7 @@ if is_variable('cpp')
'-Wno-inline',
'-Wno-padded',
'-Wno-sign-conversion',
+ '-Wno-switch-default',
'-Wno-unsafe-buffer-usage',
]
diff --git a/src/.clang-tidy b/src/.clang-tidy
index d57b1a8..6d51f06 100644
--- a/src/.clang-tidy
+++ b/src/.clang-tidy
@@ -1,8 +1,10 @@
-# Copyright 2020-2022 David Robillard <d@drobilla.net>
+# Copyright 2020-2024 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
Checks: >
-bugprone-easily-swappable-parameters,
+ -bugprone-multi-level-implicit-pointer-conversion,
+ -clang-analyzer-optin.core.EnumCastOutOfRange,
-hicpp-multiway-paths-covered,
-hicpp-signed-bitwise,
-llvm-header-guard,
diff --git a/test/.clang-tidy b/test/.clang-tidy
index 8ecb90f..c88c7b3 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -1,10 +1,12 @@
-# Copyright 2020-2023 David Robillard <d@drobilla.net>
+# Copyright 2020-2024 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
Checks: >
+ -bugprone-multi-level-implicit-pointer-conversion,
-bugprone-suspicious-include,
-cert-err33-c,
-cert-err34-c,
+ -clang-analyzer-optin.core.EnumCastOutOfRange,
-google-runtime-references,
-hicpp-multiway-paths-covered,
-hicpp-signed-bitwise,
diff --git a/test/test_timer.c b/test/test_timer.c
index 1c9f281..405a5c2 100644
--- a/test/test_timer.c
+++ b/test/test_timer.c
@@ -19,7 +19,7 @@
#include <stdint.h>
#include <stdio.h>
-#define NUM_TIMERS 4U // NOLINT(modernize-macro-to-enum)
+#define NUM_TIMERS 4U // NOLINT(*-macro-to-enum)
#ifdef __APPLE__
static const double timeout = 1 / 60.0;