[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 27 12:25:17 PDT 2024
================
@@ -4561,6 +4569,13 @@ static void TryConstructorInitialization(Sema &S,
CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function);
if (Result != OR_Deleted) {
+ if (!IsListInit && Kind.getKind() == InitializationKind::IK_Default &&
----------------
higher-performance wrote:
Could we please defer complicated improvements to a future PR? This is taking up much more bandwidth than I had allocated for it, and I really don't have unlimited time to spend on this.
https://github.com/llvm/llvm-project/pull/102040
More information about the cfe-commits
mailing list