[clang] [LifetimeSafety] Track a temporary materialized by a default argument (PR #239586)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 06:02:56 PST 2026


================
@@ -233,6 +236,21 @@ void FactsGenerator::VisitCXXConstructExpr(const CXXConstructExpr *CCE) {
   handleFunctionCall(CCE, /*IsGslConstruction=*/false);
 }
 
+void FactsGenerator::VisitCXXDefaultArgExpr(const CXXDefaultArgExpr *DAE) {
+  // The CFG does not visit a default argument's expression (PR13385), but it
----------------
Xazax-hun wrote:

Honestly, I am not sure. It is coming from `clang/lib/Analysis/CFG.cpp` and `clang/test/Analysis/more-dtors-cfg-output.cpp`. I wonder if this was the ID on the old bugzilla. So I wanted to reuse the same notation so this is connected to what was mentioned in the other files. 

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


More information about the cfe-commits mailing list