================ @@ -1662,6 +1669,9 @@ Example: // memory using malloc(). void __attribute((ownership_returns(malloc))) *my_malloc(size_t); + // 'sz' (parameter 1) is the allocation size. + void __attribute((ownership_returns(malloc, 1))) *my_sized_malloc(size_t sz); ---------------- NagyDonat wrote:
As above, the difference between `size_t` vs `size_t sz` may be confusing for readers. https://github.com/llvm/llvm-project/pull/191005 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
