diff options
author | David Robillard <d@drobilla.net> | 2020-12-14 16:00:41 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-14 16:00:41 +0100 |
commit | 15693714974fd4af7a9bee3e6a0c0f6f439dfde6 (patch) | |
tree | b039a4a9bd099f3a8176d3ba6d3a0e29a1c83894 /.clang-tidy | |
parent | 45dbb78efb7374685cd5bfba48198cabd955c5a1 (diff) | |
download | jalv-15693714974fd4af7a9bee3e6a0c0f6f439dfde6.tar.gz jalv-15693714974fd4af7a9bee3e6a0c0f6f439dfde6.tar.bz2 jalv-15693714974fd4af7a9bee3e6a0c0f6f439dfde6.zip |
Add a clang-tidy configuration
Diffstat (limited to '.clang-tidy')
-rw-r--r-- | .clang-tidy | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..0c2aa22 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,53 @@ +Checks: > + *, + -*-deprecated-headers, + -*-else-after-return, + -*-magic-numbers, + -*-member-init, + -*-named-parameter, + -*-narrowing-conversions, + -*-non-private-member-variables-in-classes, + -*-special-member-functions, + -*-uppercase-literal-suffix, + -*-use-auto, + -bugprone-branch-clone, + -bugprone-macro-parentheses, + -bugprone-reserved-identifier, + -cert-dcl37-c, + -cert-dcl51-cpp, + -cert-err34-c, + -clang-analyzer-core.CallAndMessage, + -clang-analyzer-optin.cplusplus.VirtualCall, + -clang-analyzer-security.insecureAPI.strcpy, + -cppcoreguidelines-avoid-non-const-global-variables, + -cppcoreguidelines-init-variables, + -cppcoreguidelines-macro-usage, + -cppcoreguidelines-owning-memory, + -cppcoreguidelines-pro-bounds-pointer-arithmetic, + -cppcoreguidelines-pro-type-cstyle-cast, + -cppcoreguidelines-pro-type-reinterpret-cast, + -cppcoreguidelines-pro-type-static-cast-downcast, + -fuchsia-default-arguments-calls, + -fuchsia-default-arguments-declarations, + -google-explicit-constructor, + -google-readability-todo, + -hicpp-explicit-conversions, + -hicpp-multiway-paths-covered, + -hicpp-signed-bitwise, + -llvm-header-guard, + -llvmlibc-*, + -misc-no-recursion, + -misc-unused-parameters, + -modernize-return-braced-init-list, + -modernize-use-trailing-return-type, + -modernize-use-using, + -performance-type-promotion-in-math-fn, + -readability-avoid-const-params-in-decls, + -readability-implicit-bool-conversion, + -readability-inconsistent-declaration-parameter-name, + -readability-isolate-declaration, + -readability-non-const-parameter, + -readability-static-accessed-through-instance, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file |