summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-02 23:04:41 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-02 23:04:41 +0200
commita781170deab40cff68ec497311f13d9cfca30e47 (patch)
tree25f6919c6653626349f0cea9efe91947a94a4ced /etc
parentc902cfdf6741e8189c049a0c04bda4601bd158f1 (diff)
etc/clang-tidy/config.yaml: Suppress some warnings/errors
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'etc')
-rw-r--r--etc/clang-tidy/config.yaml29
1 files changed, 28 insertions, 1 deletions
diff --git a/etc/clang-tidy/config.yaml b/etc/clang-tidy/config.yaml
index 122883d7a..fb849d81a 100644
--- a/etc/clang-tidy/config.yaml
+++ b/etc/clang-tidy/config.yaml
@@ -1,6 +1,21 @@
---
Checks: >
*,
+ -altera-id-dependent-backward-branch,
+ -altera-unroll-loops,
+ -android-cloexec-accept,
+ -android-cloexec-dup,
+ -android-cloexec-fopen,
+ -android-cloexec-memfd-create,
+ -android-cloexec-open,
+ -android-cloexec-pipe,
+ -bugprone-easily-swappable-parameters,
+ -bugprone-implicit-widening-of-multiplication-result,
+ -bugprone-reserved-identifier,
+ -cert-dcl37-c,
+ -cert-dcl51-cpp,
+ -cert-err34-c,
+ -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-concurrency-mt-unsafe,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-init-variables,
@@ -8,10 +23,22 @@ Checks: >
-hicpp-braces-around-statements,
-hicpp-no-assembler,
-llvmlibc-restrict-system-libc-headers,
- -performance-no-int-to-ptr,
-readability-braces-around-statements,
+ -readability-function-cognitive-complexity,
-readability-isolate-declaration,
WarningsAsErrors: >
*,
+ -altera-struct-pack-align,
+ -bugprone-narrowing-conversions,
+ -clang-diagnostic-format,
+ -clang-diagnostic-sign-compare,
+ -clang-diagnostic-uninitialized,
+ -clang-diagnostic-unused-parameter,
+ -cppcoreguidelines-avoid-magic-numbers,
+ -cppcoreguidelines-narrowing-conversions,
+ -hicpp-signed-bitwise,
+ -misc-unused-parameters,
+ -performance-no-int-to-ptr,
+ -readability-magic-numbers,
...