[clang] [Clang] Implement P2718R0 "Lifetime extension in range-based for loops" (PR #76361)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 17 23:53:41 PST 2024


================
@@ -1338,6 +1338,12 @@ class Sema final {
     /// context not already known to be immediately invoked.
     llvm::SmallPtrSet<DeclRefExpr *, 4> ReferenceToConsteval;
 
+    /// P2718R0 - Lifetime extension in range-based for loops.
+    /// MaterializeTemporaryExprs in for-range-init expression which need to
----------------
cor3ntin wrote:

```suggestion
    /// MaterializeTemporaryExprs in for-range-init expressions which need to
```

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


More information about the cfe-commits mailing list