[llvm-branch-commits] [clang] [Clang] [C++26] Expansion Statements (Part 5: Iterating Expansion Statements) (PR #169684)
Corentin Jabot via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue May 5 03:21:37 PDT 2026
================
@@ -11215,6 +11215,12 @@ class Sema final : public SemaBase {
StmtResult *RebuildResult = nullptr,
llvm::function_ref<StmtResult()> RebuildWithDereference = {});
+ /// Helper used by the expansion statements and for-range code to build
+ /// a variable declaration for e.g. 'begin' and 'end'. Prefer to use
+ /// BuildCXXForRangeBeginEndVars() instead if applicable.
----------------
cor3ntin wrote:
This is an ominous comment - why should i prefer the other function? when is it not applicable?
https://github.com/llvm/llvm-project/pull/169684
More information about the llvm-branch-commits
mailing list