================
@@ -106,3 +106,20 @@ enum H {
};
```
````
+
+````{option} AllowConsecutiveInitialValuesExceptLast
+When `true`, enums where all but the last enumerator are explicitly
+initialized with consecutive integer literal values, and the last
----------------
garima-gupta511 wrote:
Agreed, this behavior makes sense. I've updated the implementation to support
integer constant expressions and added tests covering both consecutive and
non-consecutive constant expression values. I've also updated the documentation
accordingly.
https://github.com/llvm/llvm-project/pull/228399
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits