[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 20 11:35:18 PST 2024
================
@@ -6014,6 +6014,10 @@ static void handleNoMergeAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
D->addAttr(NoMergeAttr::Create(S.Context, AL));
}
+static void handleExplicitInitAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
----------------
AaronBallman wrote:
This can be deleted, you have a simple handler for the attribute so this is done automatically for you.
https://github.com/llvm/llvm-project/pull/102040
More information about the cfe-commits
mailing list