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

Ilya Biryukov via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 13 05:15:33 PDT 2024


================
@@ -119,6 +119,14 @@ FIELD(HasInitMethod, 1, NO_MERGE)
 /// within anonymous unions or structs.
 FIELD(HasInClassInitializer, 1, NO_MERGE)
 
+/// Custom attribute that is True if any field is marked as explicit in a type
----------------
ilya-biryukov wrote:

Suggestion: could we mention the attribute name?
E.g. "marked as requiring init with [[<attr>]]"

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


More information about the cfe-commits mailing list