aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-09-15 22:08:52 -0400
committerDavid Robillard <d@drobilla.net>2022-09-16 22:31:06 -0400
commitdcd6280af88f74024e5a690bb4483dce43a61a1f (patch)
treee75927c20b3ab4510adebc6f693aea0368960161
parent9788441819dcc524285a88febb7da62006d72b53 (diff)
downloadchilbert-dcd6280af88f74024e5a690bb4483dce43a61a1f.tar.gz
chilbert-dcd6280af88f74024e5a690bb4483dce43a61a1f.tar.bz2
chilbert-dcd6280af88f74024e5a690bb4483dce43a61a1f.zip
Add clang-tidy configuration
-rw-r--r--.clang-tidy43
-rw-r--r--benchmark/.clang-tidy3
-rw-r--r--test/.clang-tidy11
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