summaryrefslogtreecommitdiffstats
path: root/etc/clang-tidy/config.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'etc/clang-tidy/config.yaml')
-rw-r--r--etc/clang-tidy/config.yaml51
1 files changed, 51 insertions, 0 deletions
diff --git a/etc/clang-tidy/config.yaml b/etc/clang-tidy/config.yaml
new file mode 100644
index 0000000..c9bcbae
--- /dev/null
+++ b/etc/clang-tidy/config.yaml
@@ -0,0 +1,51 @@
+---
+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-env33-c,
+ -cert-err33-c,
+ -cert-err34-c,
+ -cert-msc30-c,
+ -cert-msc50-cpp,
+ -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
+ -concurrency-mt-unsafe,
+ -cppcoreguidelines-avoid-non-const-global-variables,
+ -cppcoreguidelines-init-variables,
+ -google-readability-braces-around-statements,
+ -hicpp-braces-around-statements,
+ -hicpp-no-assembler,
+ -llvmlibc-restrict-system-libc-headers,
+ -misc-no-recursion,
+ -readability-braces-around-statements,
+ -readability-function-cognitive-complexity,
+ -readability-identifier-length,
+ -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-multiway-paths-covered,
+ -hicpp-signed-bitwise,
+ -misc-unused-parameters,
+ -performance-no-int-to-ptr,
+ -readability-magic-numbers,
+...