[clang] [analyzer] Modernize FuchsiaHandleChecker (PR #111588)

Pavel Skripkin via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 14 05:01:29 PDT 2024


pskrgag wrote:

> Is the problem that some calls cannot be annotated or is the problem that the inlined bodies often have coding patterns that are to complicated for the analyzer to understand?

Oh, sorry I missed that comment. 

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. That's why analyzer just thinks that handle leaks, since there is no point where handle gets released after function inline.

I guess, it could be solved on my side if I drop library from ctu analisys, but it helps a lot with uninit bugs. 

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


More information about the cfe-commits mailing list