[llvm-branch-commits] [clang] [Clang] [C++26] Expansion Statements (Part 5: Iterating Expansion Statements) (PR #169684)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu May 7 08:48:33 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.
----------------
Sirraide wrote:

Yeah, that’s not really a good comment; I’ll remove most of this; it’s fine to use this function on its own (in fact we do in at least one place)

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


More information about the llvm-branch-commits mailing list