[clang] [RFC] Initial implementation of P2719 (PR #113510)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 7 14:21:18 PST 2024
================
@@ -2234,6 +2234,17 @@ enum class CXXNewInitializationStyle {
Braces
};
+struct ImplicitAllocationParameters {
+ bool PassTypeIdentity;
----------------
erichkeane wrote:
For things that are stored (I think these arent?), we typically prefer bitfields for size.
As far as scoped-enum: it makes call sites much more readable than a bunch of bools, and ensures type safety. A type that only has bools is a little less type safe, but its been a while since i reviewed this so i'm not sure how I feel about it yet.
https://github.com/llvm/llvm-project/pull/113510
More information about the cfe-commits
mailing list