From 496e70e420811c7d744a8bcc44a2ac1b51b676b5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 18 Jul 2020 10:56:13 +0200 Subject: Add more powerful lint target --- .clang-tidy | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .clang-tidy (limited to '.clang-tidy') diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..c22be8b --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,38 @@ +Checks: > + *, + -*-avoid-c-arrays, + -*-magic-numbers, + -*-uppercase-literal-suffix, + -android*, + -bugprone-branch-clone, + -clang-analyzer-alpha.*, + -cppcoreguidelines-no-malloc, + -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, + -cppcoreguidelines-pro-type-vararg, + -cppcoreguidelines-special-member-functions, + -fuchsia-default-arguments-*, + -fuchsia-overloaded-operator, + -google-runtime-int, + -google-runtime-references, + -hicpp-no-array-decay, + -hicpp-no-malloc, + -hicpp-signed-bitwise, + -hicpp-special-member-functions, + -hicpp-vararg, + -llvm-header-guard, + -misc-suspicious-string-compare, + -misc-unused-parameters, + -modernize-make-unique, + -modernize-use-trailing-return-type, + -readability-else-after-return, + -readability-implicit-bool-conversion, + -readability-make-member-function-const, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file + + -- cgit v1.2.1