Xazax-hun wrote: > The problem in our code is that function that releases a handle calls a > syscall via macro, so it's not possible to directly annotate it.
Ah, I see! Thanks for sharing! I think there are a couple potential workarounds here if you cannot change the macros: * Use something like APINotes to inject annotations when parsing * Make the check recognize the syscalls and consider them annotated. * Make the check recognize the MACROs I think in this particular case maybe the APINotes solution would make the most sense. See https://clang.llvm.org/docs/APINotes.html for details. https://github.com/llvm/llvm-project/pull/111588 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits