Xazax-hun wrote: I think APINotes support attributes on param declarations. That being said, I think APINotes might need an extension to explicitly add support for handle attributes. But I think that should be a straightforward patch. https://github.com/llvm/llvm-project/pull/111588