2020-09-04 12:44:31 +00:00
|
|
|
# The warnings below are disabled because they are too pedantic and not worth fixing.
|
|
|
|
# Some of them will be enabled as part of the Clang-Tidy task, see T78535.
|
|
|
|
|
2022-05-06 12:41:58 +00:00
|
|
|
# NOTE: No comments in the list below is allowed. Clang-tidy will ignore items after comments in the lists flag list.
|
|
|
|
# This is because the comment is not a valid list item and it will stop parsing flags if a list item is a comment.
|
2020-06-05 09:37:49 +00:00
|
|
|
Checks: >
|
|
|
|
-*,
|
|
|
|
readability-*,
|
|
|
|
-readability-uppercase-literal-suffix,
|
|
|
|
-readability-magic-numbers,
|
|
|
|
-readability-isolate-declaration,
|
|
|
|
-readability-convert-member-functions-to-static,
|
|
|
|
-readability-implicit-bool-conversion,
|
|
|
|
-readability-avoid-const-params-in-decls,
|
|
|
|
-readability-simplify-boolean-expr,
|
|
|
|
-readability-make-member-function-const,
|
2021-11-23 18:45:05 +00:00
|
|
|
-readability-suspicious-call-argument,
|
|
|
|
-readability-redundant-member-init,
|
2020-06-05 09:37:49 +00:00
|
|
|
-readability-misleading-indentation,
|
2020-07-15 12:23:51 +00:00
|
|
|
-readability-use-anyofallof,
|
2022-05-06 12:47:45 +00:00
|
|
|
-readability-identifier-length,
|
2020-06-05 09:37:49 +00:00
|
|
|
|
2020-10-21 07:27:08 +00:00
|
|
|
-readability-function-cognitive-complexity,
|
|
|
|
|
2020-06-05 09:37:49 +00:00
|
|
|
bugprone-*,
|
|
|
|
-bugprone-narrowing-conversions,
|
|
|
|
-bugprone-unhandled-self-assignment,
|
|
|
|
-bugprone-branch-clone,
|
|
|
|
-bugprone-macro-parentheses,
|
2020-07-15 12:23:51 +00:00
|
|
|
-bugprone-reserved-identifier,
|
2021-11-23 18:45:05 +00:00
|
|
|
-bugprone-easily-swappable-parameters,
|
|
|
|
-bugprone-implicit-widening-of-multiplication-result,
|
2020-06-05 09:37:49 +00:00
|
|
|
|
|
|
|
-bugprone-sizeof-expression,
|
|
|
|
-bugprone-integer-division,
|
|
|
|
|
2020-10-21 07:27:08 +00:00
|
|
|
-bugprone-redundant-branch-condition,
|
|
|
|
|
2022-05-06 12:47:45 +00:00
|
|
|
-bugprone-suspicious-include,
|
|
|
|
|
2020-11-06 11:15:35 +00:00
|
|
|
modernize-*,
|
|
|
|
-modernize-use-auto,
|
|
|
|
-modernize-use-trailing-return-type,
|
|
|
|
-modernize-avoid-c-arrays,
|
|
|
|
-modernize-use-nodiscard,
|
|
|
|
-modernize-loop-convert,
|
|
|
|
-modernize-pass-by-value,
|
2021-11-23 18:45:05 +00:00
|
|
|
-modernize-raw-string-literal,
|
|
|
|
-modernize-return-braced-init-list
|
2020-11-06 11:15:35 +00:00
|
|
|
|
2021-02-05 13:39:36 +00:00
|
|
|
CheckOptions:
|
|
|
|
- key: modernize-use-default-member-init.UseAssignment
|
|
|
|
value: 1
|