[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 28 06:57:03 PDT 2024
================
@@ -1861,6 +1861,13 @@ def Leaf : InheritableAttr {
let SimpleHandler = 1;
}
+def ExplicitInit : InheritableAttr {
+ let Spellings = [Clang<"requires_explicit_initialization", 1>];
----------------
erichkeane wrote:
```suggestion
let Spellings = [Clang<"requires_explicit_initialization">];
```
Its the default value
https://github.com/llvm/llvm-project/pull/102040
More information about the cfe-commits
mailing list