[clang] [NFC][analyzer] Eliminate NodeBuilder from ExprEngine visit methods and from their utility methods (PR #212186)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 28 06:42:33 PDT 2026
================
@@ -369,12 +365,11 @@ void ExprEngine::VisitCast(const CastExpr *CastE, const Expr *Ex,
case CK_PointerToIntegral: {
SVal V = state->getSVal(Ex, SF);
if (isa<nonloc::PointerToMember>(V)) {
- state = state->BindExpr(CastE, SF, UnknownVal());
- Bldr.generateNode(CastE, Pred, state);
+ Dst.insert(Engine.makeNodeWithBinding(Pred, CastE, UnknownVal()));
continue;
}
// Explicitly proceed with default handler for this case cascade.
- state = handleLValueBitCast(state, Ex, SF, T, ExTy, CastE, Bldr, Pred);
+ state = handleLValueBitCast(state, Ex, SF, T, ExTy, CastE, Dst, Pred);
----------------
NagyDonat wrote:
Consider turning this `handleLValueBitCast` into a lambda function to simplify the code.
https://github.com/llvm/llvm-project/pull/212186
More information about the cfe-commits
mailing list