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.
This commit is contained in:
Arnaud Ferraris
2024-10-29 15:02:39 +01:00
parent c785f7cb8d
commit 2c311b9022

4
.clang-tidy Normal file
View File

@@ -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-*'