[clang] [analyzer] Use explicit call description mode in MIGChecker (PR #91331)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Tue May 7 07:18:20 PDT 2024
================
@@ -87,7 +90,7 @@ class MIGChecker : public Checker<check::PostCall, check::PreStmt<ReturnStmt>,
#undef CALL
};
- CallDescription OsRefRetain{{"os_ref_retain"}, 1};
+ CallDescription OsRefRetain{CDM::SimpleFunc, {"os_ref_retain"}, 1};
----------------
NagyDonat wrote:
`CDM::SimpleFunc` is used instead of `CDM::CLibrary` because there might be some headers that declare `os_ref_retain` as a `static` and non-`inline` function -- e.g. random internet search provided [this source file](http://www.newosxbook.com/src.jl?tree=&file=/xnu-8792.81.2/libkern/os/refcnt.h).
https://github.com/llvm/llvm-project/pull/91331
More information about the cfe-commits
mailing list