================ @@ -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); ---------------- steakhal wrote:
Fixed in https://github.com/llvm/llvm-project/pull/191005/commits/753270be8cf90672af4e9b3256aa16153c66bed5 https://github.com/llvm/llvm-project/pull/191005 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
