[clang-tidy] count class member initializers as statements in 'readability-function-size' (#131669)

Improve `readability-function-size` by counting class member
initializers as statements.
Relates to https://github.com/llvm/llvm-project/issues/131126
This commit is contained in:
Baranov Victor
2025-06-21 13:14:19 +03:00
committed by GitHub
parent 369e8403b6
commit 1b5d6ec685
6 changed files with 156 additions and 1 deletions

View File

@@ -278,6 +278,11 @@ Changes in existing checks
<clang-tidy/checks/readability/convert-member-functions-to-static>` check by
fixing false positives on member functions with an explicit object parameter.
- Improved :doc:`readability-function-size
<clang-tidy/checks/readability/function-size>` check by adding new option
`CountMemberInitAsStmt` that allows counting class member initializers in
constructors as statements.
- Improved :doc:`readability-math-missing-parentheses
<clang-tidy/checks/readability/math-missing-parentheses>` check by fixing
false negatives where math expressions are the operand of assignment operators