From 2c311b90226f1b5b963e8e1440255294efdf38ee Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Tue, 29 Oct 2024 15:02:39 +0100 Subject: [PATCH] add clang-tidy configuration This will allow us to run a static analysis tool, catching the most obvious issues (use-after-free, potential NULL dereference...) and (hopefully) increasing this software's overall robustness. --- .clang-tidy | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..4c3ace6 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,4 @@ +# DeprecatedOrUnsafeBufferHandling requests that we use safe versions +# of mem{cpy,set} for example, but this would affect portability +Checks: 'clang-diagnostic-*,clang-analyzer-*,-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling' +WarningsAsErrors: 'clang-diagnostic-*,clang-analyzer-*'