tomasz-kaminski-sonarsource wrote:

> I had an offline discussion with @Endilll during my morning office hours 
> today, and our current plan is:
> 
> 1. Remove `Implicit` from the enumeration, rename `Call` and `List` to 
> `ParenList` and `BraceList`, respectively
> 2. Add a new bit to the bit-field for `CXXNewExpr` to track "has an 
> initializer" instead of encoding it as in-band information in the 
> initialization style.
> 3. Use that new bit internally in `CXXNewExpr`, update serialization and 
> whatnot accordingly.
> 
> This should bring us back to the enumeration mapping directly to syntax but 
> removes the strange in-band nature of how the original enumeration was being 
> used.

Thank you! I really like how this direction, that both keeps the benefit of 
simplified implementation and makes the enumeration values cleaner. Of course 
this resolves, all concerns that we have with this change.

https://github.com/llvm/llvm-project/pull/71417
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to