[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 21 10:20:11 PST 2024


================
@@ -2347,6 +2351,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 requires explicit initialization but is not explicitly initialized">,
----------------
AaronBallman wrote:

Same here

https://github.com/llvm/llvm-project/pull/102040


More information about the cfe-commits mailing list