https://github.com/cor3ntin commented:

I think I prefer the approach chosen by @zyn0217.

The changes are more targeted, and using a visitor for the call operator avoid 
a lot of code duplication. In particular, if we want to properly handle 
attributes, we might need code in `CollectUnexpandedParameterPacksVisitor.` Or 
maybe we just need a generic solution to store a flag on attributes.

I'd also would like us to avoid going over the lambda multiple times if we 
don't need to.

I would suggest:
 - Make a separate PR for template default arguments
 - Make an NFC commit for the fold expression assert
 - Help @zyn0217 ensure his PR covers all the failing tests
 - Find a good solution for attributes. If you tell me that there is a business 
reason to get `diagnose_if` working in 19, i think an ad-hoc solution is fine, 
as long as we replace it soon.
 
Does that seem reasonable?

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

Reply via email to