pskrgag wrote:

I think, it would be even better to drop second argument for 
`ownership_returns`, since it mirrors the behavior of `alloc_size`. And also 
allow any return type.

But I am not sure if it's possible to make such change directly. Maybe we 
should start with deprecation for couple of releases and eventually come to 
scheme where `ownership_*` annotates classes of resources, while `alloc_size` 
annotates only memory allocations. And users will be able to combine them as 
they like.

If this sounds sane, I will fill up an issue.



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

Reply via email to