1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-03 13:35:36 +00:00

build: silence new clang-tidy 13 warnings (#1982)

* build: silence new clang-tidy 13 warnings

* build: remove WarningsAsErrors in libT-tests .clang-tidy
This commit is contained in:
Charles Kerr 2021-10-17 19:48:33 -05:00 committed by GitHub
parent c6501c655c
commit 4b4948d26d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View file

@ -4,6 +4,8 @@
Checks: > Checks: >
bugprone-*, bugprone-*,
-bugprone-branch-clone, -bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-narrowing-conversions, -bugprone-narrowing-conversions,
cert-*, cert-*,
-cert-err58-cpp, -cert-err58-cpp,
@ -28,6 +30,7 @@ Checks: >
-cppcoreguidelines-narrowing-conversions, -cppcoreguidelines-narrowing-conversions,
-cppcoreguidelines-non-private-member-variables-in-classes, -cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-owning-memory, -cppcoreguidelines-owning-memory,
-cppcoreguidelines-prefer-member-initializer,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay, -cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-bounds-constant-array-index, -cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-pointer-arithmetic, -cppcoreguidelines-pro-bounds-pointer-arithmetic,
@ -47,6 +50,7 @@ Checks: >
-misc-no-recursion, -misc-no-recursion,
-misc-non-private-member-variables-in-classes, -misc-non-private-member-variables-in-classes,
modernize-*, modernize-*,
-modernize-return-braced-init-list,
-modernize-use-trailing-return-type, # keep -modernize-use-trailing-return-type, # keep
performance-*, performance-*,
readability-*, readability-*,

View file

@ -4,6 +4,8 @@
Checks: > Checks: >
bugprone-*, bugprone-*,
-bugprone-branch-clone, -bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-narrowing-conversions, -bugprone-narrowing-conversions,
cert-*, cert-*,
-cert-dcl50-cpp, -cert-dcl50-cpp,
@ -46,8 +48,9 @@ Checks: >
-misc-no-recursion, -misc-no-recursion,
-misc-non-private-member-variables-in-classes, -misc-non-private-member-variables-in-classes,
modernize-*, modernize-*,
-modernize-raw-string-literal,
-modernize-concat-nested-namespaces, -modernize-concat-nested-namespaces,
-modernize-raw-string-literal,
-modernize-return-braced-init-list,
-modernize-use-trailing-return-type, -modernize-use-trailing-return-type,
performance-*, performance-*,
-performance-no-int-to-ptr, -performance-no-int-to-ptr,
@ -59,10 +62,8 @@ Checks: >
-readability-magic-numbers, -readability-magic-numbers,
-readability-qualified-auto, -readability-qualified-auto,
-readability-redundant-access-specifiers, -readability-redundant-access-specifiers,
-readability-static-accessed-through-instance -readability-static-accessed-through-instance,
-readability-suspicious-call-argument
WarningsAsErrors: >
*
CheckOptions: CheckOptions:
- { key: readability-identifier-naming.ClassCase, value: CamelCase } - { key: readability-identifier-naming.ClassCase, value: CamelCase }