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. --- include/pugl/.clang-tidy | 5 +++++ include/pugl/detail/.clang-tidy | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 include/pugl/.clang-tidy create mode 100644 include/pugl/detail/.clang-tidy (limited to 'include/pugl') diff --git a/include/pugl/.clang-tidy b/include/pugl/.clang-tidy new file mode 100644 index 0000000..6453ca0 --- /dev/null +++ b/include/pugl/.clang-tidy @@ -0,0 +1,5 @@ +Checks: > + *, + -*-uppercase-literal-suffix, +FormatStyle: file +HeaderFilterRegex: 'pugl/.*' diff --git a/include/pugl/detail/.clang-tidy b/include/pugl/detail/.clang-tidy new file mode 100644 index 0000000..7bc36f7 --- /dev/null +++ b/include/pugl/detail/.clang-tidy @@ -0,0 +1,12 @@ +Checks: > + *, + -*-uppercase-literal-suffix, + -*magic-numbers, + -bugprone-suspicious-string-compare, + -cert-flp30-c, + -clang-analyzer-security.FloatLoopCounter, + -hicpp-multiway-paths-covered, + -hicpp-signed-bitwise, + -readability-else-after-return, +FormatStyle: file +HeaderFilterRegex: 'pugl/.*' -- cgit v1.2.1