From 72b11f220d3d1aeca6844afbf8c0c10129d1593e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 21 Oct 2020 12:48:57 +0200 Subject: Use separate clang-tidy configurations in different directories This allows more fine-grained control. In particular, it prevents mistaked from creeping in to the public headers or core implementation because of warnings that are disabled for the tests and examples. This keeps the code that is used in other projects as clean as possible. --- examples/.clang-tidy | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/.clang-tidy (limited to 'examples') diff --git a/examples/.clang-tidy b/examples/.clang-tidy new file mode 100644 index 0000000..0c4a3cd --- /dev/null +++ b/examples/.clang-tidy @@ -0,0 +1,20 @@ +Checks: > + *, + -*avoid-c-arrays, + -*magic-numbers, + -*uppercase-literal-suffix, + -android-cloexec-fopen, + -bugprone-suspicious-string-compare, + -cert-flp30-c, + -clang-analyzer-alpha.*, + -clang-analyzer-security.FloatLoopCounter, + -google-runtime-references, + -hicpp-multiway-paths-covered, + -hicpp-signed-bitwise, + -llvm-header-guard, + -modernize-use-trailing-return-type, + -readability-else-after-return, + -readability-implicit-bool-conversion, + -readability-named-parameter, +FormatStyle: file +HeaderFilterRegex: 'pugl/.*|test/.*|examples/.*' \ No newline at end of file -- cgit v1.2.1