[clang] [LifetimeSafety] Overhaul CFG and analysis to also work with trivially destructed temporary objects (PR #177985)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 3 14:47:45 PST 2026


================
@@ -313,6 +314,32 @@ class CFGLifetimeEnds : public CFGElement {
   }
 };
 
+class CFGFullExprCleanup : public CFGElement {
+  using MTEVecTy = BumpVector<const MaterializeTemporaryExpr *>;
+
+public:
+  explicit CFGFullExprCleanup(const MTEVecTy *vec)
----------------
usx95 wrote:

nit: rename variable to start with capital letter. `MTEs` ?

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


More information about the cfe-commits mailing list