mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 07:22:12 -05:00
a3a104f97a
These patterns are very common throughout the Blender codebase, which makes the clang-tidy output and using clangd in an IDE quite noisy. They were introduced in LLVM version 18 and 19. * readability-math-missing-parentheses * readability-avoid-nested-conditional-operator * readability-enum-initial-value * readability-avoid-unconditional-preprocessor-if Pull Request: https://projects.blender.org/blender/blender/pulls/132462
59 lines
1.9 KiB
YAML
59 lines
1.9 KiB
YAML
# 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.
|
|
|
|
# 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.
|
|
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,
|
|
-readability-suspicious-call-argument,
|
|
-readability-redundant-member-init,
|
|
-readability-misleading-indentation,
|
|
-readability-use-anyofallof,
|
|
-readability-identifier-length,
|
|
-readability-enum-initial-value,
|
|
-readability-math-missing-parentheses,
|
|
-readability-avoid-nested-conditional-operator,
|
|
-readability-avoid-unconditional-preprocessor-if,
|
|
|
|
-readability-function-cognitive-complexity,
|
|
|
|
bugprone-*,
|
|
-bugprone-narrowing-conversions,
|
|
-bugprone-unhandled-self-assignment,
|
|
-bugprone-branch-clone,
|
|
-bugprone-macro-parentheses,
|
|
-bugprone-reserved-identifier,
|
|
-bugprone-easily-swappable-parameters,
|
|
-bugprone-implicit-widening-of-multiplication-result,
|
|
|
|
-bugprone-sizeof-expression,
|
|
-bugprone-integer-division,
|
|
|
|
-bugprone-redundant-branch-condition,
|
|
|
|
-bugprone-suspicious-include,
|
|
|
|
modernize-*,
|
|
-modernize-use-auto,
|
|
-modernize-use-trailing-return-type,
|
|
-modernize-avoid-c-arrays,
|
|
-modernize-use-nodiscard,
|
|
-modernize-loop-convert,
|
|
-modernize-pass-by-value,
|
|
-modernize-raw-string-literal,
|
|
-modernize-return-braced-init-list,
|
|
|
|
objc-*
|
|
|
|
CheckOptions:
|
|
- key: modernize-use-default-member-init.UseAssignment
|
|
value: 1
|