diff options
author | David Robillard <d@drobilla.net> | 2023-05-02 13:57:26 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-02 13:57:26 -0400 |
commit | 0487f12874e471cc2c6c7fdc7e9c5d205e511df3 (patch) | |
tree | bae470552c9836d53560828abc2438efb09be62e /.clang-tidy | |
parent | c69530dfbdea2b067f45be216f3039aa4d180d07 (diff) | |
download | raul-0487f12874e471cc2c6c7fdc7e9c5d205e511df3.tar.gz raul-0487f12874e471cc2c6c7fdc7e9c5d205e511df3.tar.bz2 raul-0487f12874e471cc2c6c7fdc7e9c5d205e511df3.zip |
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.
Diffstat (limited to '.clang-tidy')
-rw-r--r-- | .clang-tidy | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..dbbeb85 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,33 @@ +# Copyright 2020-2023 David Robillard <d@drobilla.net> +# SPDX-License-Identifier: 0BSD OR ISC + +Checks: > + *, + -*-avoid-c-arrays, + -*-magic-numbers, + -*-no-malloc, + -abseil-string-find-str-contains, + -altera-*, + -android-cloexec-accept, + -bugprone-easily-swappable-parameters, + -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, + -hicpp-no-array-decay, + -llvmlibc-*, + -modernize-use-trailing-return-type, + -readability-identifier-length, + -readability-implicit-bool-conversion, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file +CheckOptions: + - key: modernize-use-override.AllowOverrideAndFinal + value: 'true' + - key: cppcoreguidelines-explicit-virtual-functions.AllowOverrideAndFinal + value: 'true' |