aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-21 12:48:57 +0200
committerDavid Robillard <d@drobilla.net>2020-10-21 15:43:29 +0200
commit72b11f220d3d1aeca6844afbf8c0c10129d1593e (patch)
tree0da74363427fd5eec42b6dbc4133082589d52b42 /examples
parentfeb6c4f7952eafbc8c2203ef0c657ea3580ee441 (diff)
downloadpugl-72b11f220d3d1aeca6844afbf8c0c10129d1593e.tar.gz
pugl-72b11f220d3d1aeca6844afbf8c0c10129d1593e.tar.bz2
pugl-72b11f220d3d1aeca6844afbf8c0c10129d1593e.zip
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.
Diffstat (limited to 'examples')
-rw-r--r--examples/.clang-tidy20
1 files changed, 20 insertions, 0 deletions
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