[clang-tools-extra] [clang-tidy]Fix PreferMemberInitializer false positive for reassignment (PR #70316)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 26 05:48:57 PDT 2023
================
@@ -250,7 +250,8 @@ Changes in existing checks
- Improved :doc:`cppcoreguidelines-prefer-member-initializer
<clang-tidy/checks/cppcoreguidelines/prefer-member-initializer>` check to
- ignore delegate constructors.
+ ignore delegate constructors and ignore re-assignment for reference or after
+ unsafety assignment.
----------------
PiotrZSL wrote:
would be good to clarify what unsafety means here, maybe "ignore re-assignment for reference or when initialization depend on field that is initialized before."
https://github.com/llvm/llvm-project/pull/70316
More information about the cfe-commits
mailing list