[clang] [WIP] [analyzer] Refactor MallocChecker to use `BindExpr` in `evalCall` (PR #106081)

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 27 09:02:32 PDT 2024


================
@@ -1736,6 +1816,25 @@ MallocChecker::MallocMemReturnsAttr(CheckerContext &C, const CallEvent &Call,
   return MallocMemAux(C, Call, UnknownVal(), UndefinedVal(), State, Family);
 }
 
+ProgramStateRef MallocChecker::MallocBindRetval(CheckerContext &C,
----------------
NagyDonat wrote:

`<bikeshedding>`
Rename this to `MallocBindRetVal` to make the capitalization more consistent. (Btw `git grep` shows 310 occurrences for `Retval` vs 2317 for `RetVal` in the whole LLVM repo.)
`</bikeshedding>`

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


More information about the cfe-commits mailing list