================
@@ -15056,6 +15056,23 @@ void
Sema::addLifetimeBoundToImplicitThis(CXXMethodDecl *MD) {
MD->setTypeSourceInfo(TLB.getTypeSourceInfo(Context, AttributedType));
}
+/// Determine whether the initializer of a range-based for loop variable reads
+/// one of the loop's implicit non-constexpr iterator variables ('__begin1').
+static bool initReadsForRangeImplicitVar(const Expr *Init) {
----------------
Fznamznon wrote:
I don't think this is how you should do this. A constexpr evaluator should emit
a specific note when it encounters the variable.
https://github.com/llvm/llvm-project/pull/218145
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits