Tweak clang-tidy rules (#19210)

This commit is contained in:
mwtian 2021-10-07 18:53:18 -07:00 committed by GitHub
parent 8d89e2d546
commit 9f066485a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,9 +9,9 @@
# -modernize-pass-by-value (too restrictive)
# -modernize-return-braced-init-list (inconsistent style)
# -modernize-use-emplace (more subtle behavior)
# -modernize-use-nodiscard (too much noise)
# -modernize-use-trailing-return-type (inconsistent style)
# -modernize-use-trailing-return-type (inconsistent style)
# -readability-convert-member-functions-to-static (potentially too restrictive)
# Other readability-* rules (potentially too noisy, inconsistent style)
# Other rules not mentioned here or below (not yet evaluated)
#
# TODO: enable google-* and readability-* families of checks.
@ -30,6 +30,7 @@ Checks: >
-modernize-pass-by-value,
-modernize-return-braced-init-list,
-modernize-use-emplace,
-modernize-use-nodiscard,
-modernize-use-trailing-return-type,
performance-*,
readability-avoid-const-params-in-decls,
@ -38,6 +39,16 @@ Checks: >
readability-container-size-empty,
readability-delete-null-pointer,
readability-else-after-return,
readability-implicit-bool-conversion,
readability-make-member-function-const,
readability-misleading-indentation,
readability-misplaced-array-index,
readability-named-parameter,
readability-non-const-parameter,
readability-redundant-*,
readability-static-definition-in-anonymous-namespace,
readability-string-compare,
readability-suspicious-call-argument,
CheckOptions:
# Reduce noisiness of the bugprone-narrowing-conversions check.