[go: nahoru, domu]

Skip to content

Commit

Permalink
Suppress new warnings in clang and clang-tidy 18
Browse files Browse the repository at this point in the history
  • Loading branch information
drobilla committed Jul 17, 2024
1 parent ac7f3a2 commit 8da362e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions meson/suppressions/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ if is_variable('cc')
'-Wno-double-promotion',
'-Wno-format-nonliteral',
'-Wno-padded',
'-Wno-switch-default',
'-Wno-unsafe-buffer-usage',
]

Expand Down
6 changes: 5 additions & 1 deletion src/.clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@
# SPDX-License-Identifier: 0BSD OR ISC

Checks: >
-*-macro-to-enum,
-*-magic-numbers,
-bugprone-easily-swappable-parameters,
-bugprone-inc-dec-in-conditions,
-bugprone-multi-level-implicit-pointer-conversion,
-cert-err33-c,
-clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-concurrency-mt-unsafe,
-google-readability-todo,
-hicpp-multiway-paths-covered,
-hicpp-signed-bitwise,
-llvm-header-guard,
-misc-no-recursion,
-modernize-macro-to-enum,
-readability-avoid-nested-conditional-operator,
CheckOptions:
- key: readability-function-cognitive-complexity.IgnoreMacros
value: 'true'
Expand Down
2 changes: 2 additions & 0 deletions test/.clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ Checks: >
-bugprone-easily-swappable-parameters,
-cert-err33-c,
-clang-analyzer-nullability.NullableDereferenced,
-clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-concurrency-mt-unsafe,
-hicpp-signed-bitwise,
-readability-redundant-casting,
CheckOptions:
- key: readability-function-cognitive-complexity.IgnoreMacros
value: 'true'
Expand Down

0 comments on commit 8da362e

Please sign in to comment.