From 681d42a8a8b2fede618bb1073c851d0539fe5c48 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Dec 2019 21:18:17 +0100 Subject: Improve lint target --- .clang-tidy | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .clang-tidy (limited to '.clang-tidy') diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 00000000..1580361b --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,46 @@ +Checks: > + *, + -*avoid-c-arrays, + -*magic-numbers, + -*non-private-member-variables-in-classes, + -*uppercase-literal-suffix, + -android-cloexec-fopen, + -bugprone-parent-virtual-call, + -bugprone-suspicious-string-compare, + -cert-dcl50-cpp, + -cert-err34-c, + -clang-analyzer-alpha.*, + -clang-analyzer-valist.Uninitialized, + -cppcoreguidelines-macro-usage, + -cppcoreguidelines-no-malloc, + -cppcoreguidelines-owning-memory, + -cppcoreguidelines-pro-bounds-array-to-pointer-decay, + -cppcoreguidelines-pro-bounds-constant-array-index, + -cppcoreguidelines-pro-bounds-pointer-arithmetic, + -cppcoreguidelines-pro-type-const-cast, + -cppcoreguidelines-pro-type-cstyle-cast, + -cppcoreguidelines-pro-type-member-init, + -cppcoreguidelines-pro-type-reinterpret-cast, + -cppcoreguidelines-pro-type-static-cast-downcast, + -cppcoreguidelines-pro-type-union-access, + -cppcoreguidelines-pro-type-vararg, + -fuchsia-*, + -google-build-using-namespace, + -google-default-arguments, + -google-readability-casting, + -google-readability-todo, + -google-runtime-references, + -hicpp-multiway-paths-covered, + -hicpp-no-array-decay, + -hicpp-no-malloc, + -hicpp-signed-bitwise, + -hicpp-vararg, + -llvm-header-guard, + -modernize-use-trailing-return-type, + -portability-simd-intrinsics, + -readability-else-after-return, + -readability-implicit-bool-conversion, + -readability-named-parameter, +WarningsAsErrors: '' +HeaderFilterRegex: 'pugl/.*|test/.*' +FormatStyle: file -- cgit v1.2.1