From 127ded1247765f9ee0db061bf81cf1d2f0088917 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 29 Jun 2022 09:04:27 -0400 Subject: Add header warning test --- test/headers/.clang-tidy | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/headers/.clang-tidy (limited to 'test/headers/.clang-tidy') diff --git a/test/headers/.clang-tidy b/test/headers/.clang-tidy new file mode 100644 index 0000000..374dbd7 --- /dev/null +++ b/test/headers/.clang-tidy @@ -0,0 +1,33 @@ +Checks: > + *, + -*-avoid-c-arrays, + -*-magic-numbers, + -*-no-malloc, + -abseil-string-find-str-contains, + -altera-*, + -android-cloexec-accept, + -bugprone-easily-swappable-parameters, + -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*, + -fuchsia-overloaded-operator, + -google-runtime-int, + -hicpp-no-array-decay, + -llvmlibc-*, + -modernize-return-braced-init-list, + -modernize-use-nodiscard, + -modernize-use-trailing-return-type, + -readability-identifier-length, + -readability-implicit-bool-conversion, +CheckOptions: + - key: modernize-use-override.AllowOverrideAndFinal + value: 'true' +CheckOptions: + - key: cppcoreguidelines-explicit-virtual-functions.AllowOverrideAndFinal + value: 'true' +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file -- cgit v1.2.1