2020-09-04 14:44:31 +02: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 14:41:58 +02: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 11:37:49 +02: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 19:45:05 +01:00
|
|
|
-readability-suspicious-call-argument,
|
|
|
|
-readability-redundant-member-init,
|
2020-06-05 11:37:49 +02:00
|
|
|
-readability-misleading-indentation,
|
2020-07-15 14:23:51 +02:00
|
|
|
-readability-use-anyofallof,
|
2022-05-06 14:47:45 +02:00
|
|
|
-readability-identifier-length,
|
2020-06-05 11:37:49 +02:00
|
|
|
|
2020-10-21 09:27:08 +02:00
|
|
|
-readability-function-cognitive-complexity,
|
|
|
|
|
2020-06-05 11:37:49 +02:00
|
|
|
bugprone-*,
|
|
|
|
-bugprone-narrowing-conversions,
|
|
|
|
-bugprone-unhandled-self-assignment,
|
|
|
|
-bugprone-branch-clone,
|
|
|
|
-bugprone-macro-parentheses,
|
2020-07-15 14:23:51 +02:00
|
|
|
-bugprone-reserved-identifier,
|
2021-11-23 19:45:05 +01:00
|
|
|
-bugprone-easily-swappable-parameters,
|
|
|
|
-bugprone-implicit-widening-of-multiplication-result,
|
2020-06-05 11:37:49 +02:00
|
|
|
|
|
|
|
-bugprone-sizeof-expression,
|
|
|
|
-bugprone-integer-division,
|
|
|
|
|
2020-10-21 09:27:08 +02:00
|
|
|
-bugprone-redundant-branch-condition,
|
|
|
|
|
2022-05-06 14:47:45 +02:00
|
|
|
-bugprone-suspicious-include,
|
|
|
|
|
2020-11-06 12:15:35 +01: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 19:45:05 +01:00
|
|
|
-modernize-raw-string-literal,
|
|
|
|
-modernize-return-braced-init-list
|
2020-11-06 12:15:35 +01:00
|
|
|
|
2021-02-05 14:39:36 +01:00
|
|
|
CheckOptions:
|
|
|
|
- key: modernize-use-default-member-init.UseAssignment
|
|
|
|
value: 1
|