diff options
author | David Robillard <d@drobilla.net> | 2022-09-15 22:08:52 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-16 22:31:06 -0400 |
commit | dcd6280af88f74024e5a690bb4483dce43a61a1f (patch) | |
tree | e75927c20b3ab4510adebc6f693aea0368960161 | |
parent | 9788441819dcc524285a88febb7da62006d72b53 (diff) | |
download | chilbert-dcd6280af88f74024e5a690bb4483dce43a61a1f.tar.gz chilbert-dcd6280af88f74024e5a690bb4483dce43a61a1f.tar.bz2 chilbert-dcd6280af88f74024e5a690bb4483dce43a61a1f.zip |
Add clang-tidy configuration
-rw-r--r-- | .clang-tidy | 43 | ||||
-rw-r--r-- | benchmark/.clang-tidy | 3 | ||||
-rw-r--r-- | test/.clang-tidy | 11 |
3 files changed, 57 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..ad6ec5b --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,43 @@ +Checks: > + *, + -*-avoid-c-arrays, + -*-else-after-return, + -*-magic-numbers, + -*-member-init, + -*-move-const-arg, + -*-named-parameter, + -*-no-malloc, + -*-non-private-member-variables-in-classes, + -*-special-member-functions, + -*-use-auto, + -altera-*, + -bugprone-easily-swappable-parameters, + -bugprone-move-forwarding-reference, + -cert-oop54-cpp, + -cppcoreguidelines-init-variables, + -cppcoreguidelines-owning-memory, + -cppcoreguidelines-pro-bounds-constant-array-index, + -cppcoreguidelines-pro-bounds-pointer-arithmetic, + -cppcoreguidelines-slicing, + -fuchsia-default-arguments-calls, + -fuchsia-default-arguments-declarations, + -fuchsia-overloaded-operator, + -google-explicit-constructor, + -google-readability-casting, + -google-runtime-int, + -google-runtime-references, + -hicpp-explicit-conversions, + -hicpp-signed-bitwise, + -llvm-header-guard, + -llvmlibc-*, + -misc-definitions-in-headers, + -modernize-return-braced-init-list, + -modernize-use-bool-literals, + -modernize-use-trailing-return-type, + -readability-avoid-const-params-in-decls, + -readability-convert-member-functions-to-static, + -readability-identifier-length, + -readability-implicit-bool-conversion, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file diff --git a/benchmark/.clang-tidy b/benchmark/.clang-tidy new file mode 100644 index 0000000..ac890bd --- /dev/null +++ b/benchmark/.clang-tidy @@ -0,0 +1,3 @@ +Checks: > + -readability-static-accessed-through-instance, +InheritParentConfig: true diff --git a/test/.clang-tidy b/test/.clang-tidy new file mode 100644 index 0000000..b789602 --- /dev/null +++ b/test/.clang-tidy @@ -0,0 +1,11 @@ +Checks: > + -*-assert-side-effect, + -bugprone-implicit-widening-of-multiplication-result, + -cert-msc30-c, + -cert-msc50-cpp, + -concurrency-mt-unsafe, + -cppcoreguidelines-pro-bounds-array-to-pointer-decay, + -hicpp-no-array-decay, + -performance-no-automatic-move, + -readability-identifier-length, +InheritParentConfig: true |