From 0495c381d065713852ee9e61df544ba531223824 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 12 Nov 2020 01:43:47 +0100 Subject: Use separate clang-tidy configurations for headers and tests --- include/.clang-tidy | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/.clang-tidy (limited to 'include/.clang-tidy') diff --git a/include/.clang-tidy b/include/.clang-tidy new file mode 100644 index 0000000..3ed1d44 --- /dev/null +++ b/include/.clang-tidy @@ -0,0 +1,28 @@ +Checks: > + *, + -*-avoid-c-arrays, + -*-magic-numbers, + -*-no-malloc, + -*-special-member-functions, + -*-uppercase-literal-suffix, + -android-cloexec-accept, + -bugprone-branch-clone, + -clang-diagnostic-unused-macros, + -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, + -fuchsia-default-arguments-calls, + -fuchsia-default-arguments-declarations, + -fuchsia-overloaded-operator, + -google-runtime-int, + -hicpp-no-array-decay, + -modernize-use-trailing-return-type, + -readability-else-after-return, + -readability-implicit-bool-conversion, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file + + -- cgit v1.2.1