Xazax-hun wrote:

> Is there a concrete problem this would prevent? 

This would force users to merge `lifetime_capture_by(a, b), 
lifetime_capture_by(c, d)` to `lifetime_capture_by(a, b, c, d)` and to not have 
duplicate spellings of `lifetime_capture_by_this`. 

The fact that we create one attribute for all of these spellings is an 
implementation detail. So if we only allowed one instance of one spelling that 
is the same behaviour as if all of these were separate attributes that do not 
allow duplicates. So the advantage is that this gives us the freedom to change 
the implementation details more freely to independent attributes if we see fit, 
and it gives a more consistent user experience, as in it preserves the original 
behaviour of not allowing duplicates of the same spelling. 

https://github.com/llvm/llvm-project/pull/196635
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to