[clang-tools-extra] [clang-tidy] Fix handling of members in readability-redundant-member-init (PR #93217)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Thu May 23 15:49:37 PDT 2024
================
@@ -387,6 +387,11 @@ Changes in existing checks
<clang-tidy/checks/readability/redundant-inline-specifier>` check to properly
emit warnings for static data member with an in-class initializer.
+- Improved :doc:`readability-redundant-member-init
+ <clang-tidy/checks/readability/redundant-member-init>` check to avoid
+ false-positives when type of the member does not match type of the
+ initializer.
+
----------------
5chmidti wrote:
I think this note should mention that base-class initializers are now checked as well. It's a minor user-facing change.
(While you're at it: the last to `type` need a `the` beforehand)
https://github.com/llvm/llvm-project/pull/93217
More information about the cfe-commits
mailing list