misc: Update clang-tidy config

This commit is contained in:
Ryan Pavlik 2023-03-02 17:23:50 -06:00 committed by Jakob Bornecrantz
parent ae61287f4c
commit b44327bd0c

View file

@ -1,18 +1,18 @@
--- ---
# SPDX-License-Identifier: CC0-1.0 # SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: 2018-2022, Collabora, Ltd. and the Monado contributors # SPDX-FileCopyrightText: 2018-2023, Collabora, Ltd. and the Monado contributors
# Ideally we'd turn back on some of these that are disabled. # Ideally we'd turn back on some of these that are disabled.
# Things on the same line are synonyms # Things on the same line are synonyms
Checks: | Checks: |
clang-diagnostic-*, clang-diagnostic-*,
clang-analyzer-*, clang-analyzer-*,
hicpp-signed-bitwise,
performance-*, performance-*,
bugprone-*, bugprone-*,
cert-*, cert-*,
readability-*, readability-*,
misc-*, misc-*,
-modernize-*, -modernize-*,
-misc-static-assert,-cert-dcl03-c,
-bugprone-macro-parentheses, -bugprone-macro-parentheses,
-bugprone-reserved-identifier,-cert-dcl37-c,-cert-dcl51-cpp, -bugprone-reserved-identifier,-cert-dcl37-c,-cert-dcl51-cpp,
-cert-dcl21-cpp, -cert-dcl21-cpp,
@ -20,13 +20,17 @@ Checks: |
-clang-analyzer-security.insecureAPI.strcpy, -clang-analyzer-security.insecureAPI.strcpy,
-clang-diagnostic-missing-braces, -clang-diagnostic-missing-braces,
-clang-diagnostic-missing-field-initializers, -clang-diagnostic-missing-field-initializers,
-clang-diagnostic-unused-function,
-misc-non-private-member-variables-in-classes, -misc-non-private-member-variables-in-classes,
-misc-static-assert,-cert-dcl03-c,
-misc-unused-parameters, -misc-unused-parameters,
-performance-no-int-to-ptr,
-readability-braces-around-statements, -readability-braces-around-statements,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-implicit-bool-conversion, -readability-implicit-bool-conversion,
-readability-redundant-access-specifiers, -readability-redundant-access-specifiers,
-readability-uppercase-literal-suffix, -readability-uppercase-literal-suffix,-hicpp-uppercase-literal-suffix,
-readability-identifier-length,
# Notes: # Notes:
# misc-static-assert turns our assert(false) in failure/bad cases into static_asserts. We should revise them, but not like that. # misc-static-assert turns our assert(false) in failure/bad cases into static_asserts. We should revise them, but not like that.
# cert-dcl21-cpp is an overkill "recommendation" to return a special type from iterator post-increment # cert-dcl21-cpp is an overkill "recommendation" to return a special type from iterator post-increment