================
@@ -115,6 +115,15 @@ static const Loan *createLoan(FactManager &FactMgr, const
CXXNewExpr *NE) {
return FactMgr.getLoanMgr().createLoan(Path, NE);
}
+/// Creates a loan for a heap allocation made by a call (e.g. a function
+/// annotated with `ownership_returns`, like `malloc`).
+/// \param CE The CallExpr that represents the allocation
+/// \return The new Loan on success, nullptr otherwise
+static const Loan *createLoan(FactManager &FactMgr, const CallExpr *CE) {
----------------
Xazax-hun wrote:
Maybe `createNewAllocLoan`?
https://github.com/llvm/llvm-project/pull/213439
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits