From b953b87ad473c7a4480df6b2bcbed68b13c8c663 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 17 Dec 2021 13:05:43 -0500 Subject: Suppress new warnings in clang-tidy 13 --- bindings/cpp/include/.clang-tidy | 2 +- examples/.clang-tidy | 3 ++- include/.clang-tidy | 2 +- meson.build | 1 + src/.clang-tidy | 3 ++- test/.clang-tidy | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bindings/cpp/include/.clang-tidy b/bindings/cpp/include/.clang-tidy index 20c477e..547f0b9 100644 --- a/bindings/cpp/include/.clang-tidy +++ b/bindings/cpp/include/.clang-tidy @@ -1,7 +1,7 @@ Checks: > *, -*-uppercase-literal-suffix, - -altera-struct-pack-align, + -altera*, -clang-diagnostic-unused-macros, -cppcoreguidelines-pro-bounds-pointer-arithmetic, -cppcoreguidelines-pro-type-reinterpret-cast, diff --git a/examples/.clang-tidy b/examples/.clang-tidy index a03027e..52f1f0e 100644 --- a/examples/.clang-tidy +++ b/examples/.clang-tidy @@ -4,8 +4,9 @@ Checks: > -*avoid-c-arrays, -*magic-numbers, -*uppercase-literal-suffix, - -altera-struct-pack-align, + -altera*, -android-cloexec-fopen, + -bugprone-easily-swappable-parameters, -bugprone-macro-parentheses, -bugprone-reserved-identifier, -bugprone-suspicious-string-compare, diff --git a/include/.clang-tidy b/include/.clang-tidy index b6d941c..3421cc2 100644 --- a/include/.clang-tidy +++ b/include/.clang-tidy @@ -2,7 +2,7 @@ Checks: > *, -*-magic-numbers, -*-uppercase-literal-suffix, - -altera-struct-pack-align, + -altera*, -clang-diagnostic-unused-function, -clang-diagnostic-unused-macros, -llvmlibc-*, diff --git a/meson.build b/meson.build index a74f9f7..892944b 100644 --- a/meson.build +++ b/meson.build @@ -42,6 +42,7 @@ if get_option('strict') '-Wno-documentation-unknown-command', # Cairo '-Wno-padded', '-Wno-reserved-id-macro', + '-Wno-reserved-identifier', # Cairo, FD_ZERO '-Wno-switch-default', '-Wno-switch-enum', ] diff --git a/src/.clang-tidy b/src/.clang-tidy index f4378ba..70b522f 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -2,7 +2,8 @@ Checks: > *, -*-uppercase-literal-suffix, -*magic-numbers, - -altera-struct-pack-align, + -altera*, + -bugprone-easily-swappable-parameters, -bugprone-reserved-identifier, -cert-dcl37-c, -cert-dcl51-cpp, diff --git a/test/.clang-tidy b/test/.clang-tidy index f3a1adc..832c2d0 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -2,7 +2,7 @@ Checks: > *, -*-magic-numbers, -*-uppercase-literal-suffix, - -altera-struct-pack-align, + -altera*, -bugprone-reserved-identifier, -bugprone-suspicious-include, -cert-dcl37-c, -- cgit v1.2.1