[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 27 10:45:31 PDT 2024
================
@@ -2331,6 +2335,9 @@ def err_init_reference_member_uninitialized : Error<
"reference member of type %0 uninitialized">;
def note_uninit_reference_member : Note<
"uninitialized reference member is here">;
+def warn_field_requires_explicit_init : Warning<
+ "field %select{%1| in %1}0 is not explicitly initialized, but was marked as "
----------------
erichkeane wrote:
```suggestion
"field %select{|in }0 %1 is not explicitly initialized, but was marked as "
```
https://github.com/llvm/llvm-project/pull/102040
More information about the cfe-commits
mailing list