summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-15 13:20:20 +0100
committerDavid Robillard <d@drobilla.net>2020-12-15 19:32:02 +0100
commiteba98a8e4a228e28f693fb5048c109ee423e3e46 (patch)
tree72757ced7918cda2b8ae20711e343e50551dd4f5
parent4295f103d71d947e3ed92731e648ba409d3664ac (diff)
downloadganv-eba98a8e4a228e28f693fb5048c109ee423e3e46.tar.gz
ganv-eba98a8e4a228e28f693fb5048c109ee423e3e46.tar.bz2
ganv-eba98a8e4a228e28f693fb5048c109ee423e3e46.zip
Add clang-tidy configuration
-rw-r--r--.clang-tidy76
1 files changed, 76 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 0000000..a07aa88
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,76 @@
+Checks: >
+ *,
+ -*-avoid-c-arrays,
+ -*-avoid-goto,
+ -*-braces-around-statements,
+ -*-else-after-return,
+ -*-magic-numbers,
+ -*-member-init,
+ -*-named-parameter,
+ -*-narrowing-conversions,
+ -*-no-malloc,
+ -*-special-member-functions,
+ -*-uppercase-literal-suffix,
+ -*-use-auto,
+ -*-use-nullptr,
+ -*-vararg,
+ -android-cloexec-fopen,
+ -bugprone-branch-clone,
+ -bugprone-incorrect-roundings,
+ -bugprone-integer-division,
+ -bugprone-macro-parentheses,
+ -bugprone-macro-parentheses,
+ -bugprone-reserved-identifier,
+ -cert-dcl21-cpp,
+ -cert-dcl37-c,
+ -cert-dcl51-cpp,
+ -cert-err34-c,
+ -cert-msc30-c,
+ -cert-msc32-c,
+ -cert-msc50-cpp,
+ -cert-msc51-cpp,
+ -clang-analyzer-cplusplus.NewDeleteLeaks,
+ -clang-analyzer-unix.Malloc,
+ -cppcoreguidelines-avoid-non-const-global-variables,
+ -cppcoreguidelines-init-variables,
+ -cppcoreguidelines-macro-usage,
+ -cppcoreguidelines-non-private-member-variables-in-classes,
+ -cppcoreguidelines-owning-memory,
+ -cppcoreguidelines-pro-bounds-array-to-pointer-decay,
+ -cppcoreguidelines-pro-bounds-pointer-arithmetic,
+ -cppcoreguidelines-pro-type-const-cast,
+ -cppcoreguidelines-pro-type-cstyle-cast,
+ -cppcoreguidelines-pro-type-reinterpret-cast,
+ -fuchsia-default-arguments-calls,
+ -fuchsia-default-arguments-declarations,
+ -fuchsia-overloaded-operator,
+ -fuchsia-statically-constructed-objects,
+ -google-build-using-namespace,
+ -google-explicit-constructor,
+ -google-readability-casting,
+ -google-readability-todo,
+ -google-runtime-references,
+ -hicpp-explicit-conversions,
+ -hicpp-multiway-paths-covered,
+ -hicpp-no-array-decay,
+ -hicpp-signed-bitwise,
+ -llvm-header-guard,
+ -llvm-namespace-comment,
+ -llvmlibc-*,
+ -misc-no-recursion,
+ -misc-non-private-member-variables-in-classes,
+ -modernize-loop-convert,
+ -modernize-raw-string-literal,
+ -modernize-use-default-member-init,
+ -modernize-use-trailing-return-type,
+ -modernize-use-using,
+ -performance-faster-string-find,
+ -readability-const-return-type,
+ -readability-container-size-empty,
+ -readability-implicit-bool-conversion,
+ -readability-inconsistent-declaration-parameter-name,
+ -readability-isolate-declaration,
+ -readability-make-member-function-const,
+WarningsAsErrors: '*'
+HeaderFilterRegex: '.*'
+FormatStyle: file