[clang] [Sema] Fix lifetime extension for temporaries in range-based for loops in C++23 (PR #145164)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 28 09:06:16 PDT 2025
================
@@ -1584,6 +1589,20 @@ class VarDecl : public DeclaratorDecl, public Redeclarable<VarDecl> {
NonParmVarDeclBits.IsCXXCondDecl = true;
}
+ /// Determine whether this variable is the compiler-generated '__range'
----------------
yronglin wrote:
```suggestion
/// Whether this variable is the implicit '__range' variable in C++ range-based for loops.
```
https://github.com/llvm/llvm-project/pull/145164
More information about the cfe-commits
mailing list