[clang] [LifetimeSafety] Model an explicit `a.operator=(b)` call as an assignment (PR #244607)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 23 04:46:23 PST 2026
================
@@ -85,6 +85,11 @@ class FactsGenerator : public ConstStmtVisitor<FactsGenerator> {
void handleAssignment(const Expr *TargetExpr, const Expr *LHSExpr,
const Expr *RHSExpr);
+ /// Models a call to an overloaded `operator=`, spelled `a = b` or
+ /// `a.operator=(b)`, as an assignment. Returns whether it did.
----------------
usx95 wrote:
nit: clarify the "it did". e.g. `Returns true if the call was modelled as an assignment.`
https://github.com/llvm/llvm-project/pull/244607
More information about the cfe-commits
mailing list