[clang] [clang][NFC] Clean up InitializedEntity booleans. (PR #185335)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 11 18:02:19 PDT 2026


================
@@ -136,6 +136,19 @@ class alignas(8) InitializedEntity {
     // that diagnostic text needs to be updated as well.
   };
 
+  enum class NRVOKind { Forbidden, Allowed };
+
+  enum class NewArrayKind {
+    KnownLength,
+    UnknownLength,
+  };
+
+  enum class ImplicitFieldInitKind { No, Yes };
----------------
shafik wrote:

Wouldn't it be better to have one enum `FieldInitKind` and enumerators, `Implicit`, 'Default` and `ParanAgg`? 

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


More information about the cfe-commits mailing list