[clang] [Sema] Enforce parameter match for ownership_returns attribute (PR #192339)

David Meng via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 24 11:50:48 PDT 2026


davidmenggx wrote:

@AaronBallman Thank you for the feedback! 

I've reverted back to the original loop structure, matching the (updated) previous diagnostic

But I believe that we need to check for the case where the current ownership_returns attribute does not contain an index, but previous declarations do. The current loop structure would miss this, so I've added it before the loop

https://github.com/llvm/llvm-project/pull/192339


More information about the cfe-commits mailing list