[llvm-branch-commits] [clang] [Clang] [C++26] Expansion Statements (Part 2: Parsing and Parser Tests) (PR #169681)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon May 4 08:34:17 PDT 2026
================
@@ -450,6 +455,14 @@ def err_unspecified_size_with_static : Error<
"'static' may not be used without an array size">;
def err_expected_parentheses_around_typename : Error<
"expected parentheses around type name in %0 expression">;
+def err_expansion_stmt_requires_range : Error<
+ "expansion statement must be a range-based for loop">;
+def err_expansion_stmt_requires_cxx2c : Error<
+ "expansion statements are only supported in C++2c">;
----------------
Sirraide wrote:
Ah, I think that was from before you requested that we not backport this; we can remove the extension warning for now
https://github.com/llvm/llvm-project/pull/169681
More information about the llvm-branch-commits
mailing list