From 0487f12874e471cc2c6c7fdc7e9c5d205e511df3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 2 May 2023 13:57:26 -0400 Subject: Simplify clang-tidy configuration This gets close to being clean when run via meson, except for a bug where clang-diagnostic-unused-macros triggers on include guards. --- test/.clang-tidy | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) (limited to 'test/.clang-tidy') diff --git a/test/.clang-tidy b/test/.clang-tidy index de70aa1..0004d61 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -1,41 +1,14 @@ -# Copyright 2020-2022 David Robillard +# Copyright 2020-2023 David Robillard # SPDX-License-Identifier: 0BSD OR GPL-3.0-or-later Checks: > - *, - -*-avoid-c-arrays, - -*-magic-numbers, -*-vararg, - -abseil-string-find-str-contains, - -altera-*, - -android-cloexec-accept, - -bugprone-easily-swappable-parameters, -bugprone-exception-escape, -cert-err33-c, -cppcoreguidelines-avoid-non-const-global-variables, - -cppcoreguidelines-no-malloc, - -cppcoreguidelines-owning-memory, - -cppcoreguidelines-pro-bounds-array-to-pointer-decay, - -cppcoreguidelines-pro-bounds-pointer-arithmetic, - -cppcoreguidelines-pro-type-const-cast, - -cppcoreguidelines-pro-type-reinterpret-cast, - -fuchsia-default-arguments*, - -fuchsia-overloaded-operator, -google-runtime-int, -google-runtime-references, - -hicpp-no-array-decay, - -hicpp-no-malloc, -hicpp-signed-bitwise, - -llvmlibc-*, -modernize-make-unique, - -modernize-use-trailing-return-type, -readability-function-cognitive-complexity, - -readability-identifier-length, - -readability-implicit-bool-conversion, -CheckOptions: - - key: modernize-use-override.AllowOverrideAndFinal - value: 'true' - - key: cppcoreguidelines-explicit-virtual-functions.AllowOverrideAndFinal - value: 'true' -HeaderFilterRegex: '.*' -FormatStyle: file +InheritParentConfig: true -- cgit v1.2.1