From e0281d51ab8c6ca05a8b467901e5bd96d829bb56 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 10 Dec 2022 13:41:44 -0500 Subject: Strengthen clang-tidy configuration --- src/.clang-tidy | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/.clang-tidy (limited to 'src/.clang-tidy') diff --git a/src/.clang-tidy b/src/.clang-tidy new file mode 100644 index 0000000..5bf8761 --- /dev/null +++ b/src/.clang-tidy @@ -0,0 +1,23 @@ +# Copyright 2020-2022 David Robillard +# SPDX-License-Identifier: 0BSD OR ISC + +Checks: > + -*-magic-numbers, + -*-uppercase-literal-suffix, + -android-cloexec-fopen, + -bugprone-branch-clone, + -bugprone-narrowing-conversions, + -bugprone-suspicious-string-compare, + -cert-err33-c, + -cert-err34-c, + -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, + -clang-analyzer-valist.Uninitialized, + -concurrency-mt-unsafe, + -cppcoreguidelines-narrowing-conversions, + -google-readability-todo, + -hicpp-multiway-paths-covered, + -hicpp-signed-bitwise, + -readability-function-cognitive-complexity, + -readability-identifier-length, + -readability-suspicious-call-argument, +InheritParentConfig: true -- cgit v1.2.1