[clang-tidy] deactivate some C++ checks not fitting

* cppcoreguidelines-avoid-c-arrays: most of our code is in C, so the C++
  components must use these to call the library functions
* modernize-pass-by-value: not compatible with the lowest supported C++
  standard of the project
This commit is contained in:
akallabeth 2024-09-17 10:46:21 +02:00
parent 6c88d89566
commit a3b658f677
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ Checks: >
-clang-analyzer-valist.Uninitialized, -clang-analyzer-valist.Uninitialized,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay, -cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-owning-memory, -cppcoreguidelines-owning-memory,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-do-while, -cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-avoid-magic-numbers, -cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-avoid-non-const-global-variables, -cppcoreguidelines-avoid-non-const-global-variables,
@ -57,6 +58,7 @@ Checks: >
-modernize-use-trailing-return-type, -modernize-use-trailing-return-type,
-modernize-return-braced-init-list, -modernize-return-braced-init-list,
-modernize-macro-to-enum, -modernize-macro-to-enum,
-modernize-pass-by-value,
-readability-braces-around-statements, -readability-braces-around-statements,
-readability-function-cognitive-complexity, -readability-function-cognitive-complexity,
-readability-identifier-length, -readability-identifier-length,