[clang] [Clang] Implement P2718R0 "Lifetime extension in range-based for loops" (PR #76361)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 11 05:47:56 PST 2024
================
@@ -2783,6 +2789,7 @@ StmtResult Sema::BuildCXXForRangeStmt(SourceLocation ForLoc,
LoopVar->setType(SubstAutoTypeDependent(LoopVar->getType()));
}
} else if (!BeginDeclStmt.get()) {
+
----------------
AaronBallman wrote:
Spurious whitespace change can be removed.
https://github.com/llvm/llvm-project/pull/76361
More information about the cfe-commits
mailing list