[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 27 00:37:10 PDT 2025


================
@@ -524,6 +525,354 @@ class CoreturnStmt : public Stmt {
   }
 };
 
+/// CXXExpansionStmt - Base class for an unexpanded C++ expansion statement.
+class CXXExpansionStmt : public Stmt {
+  friend class ASTStmtReader;
+
+  ExpansionStmtDecl *ParentDecl;
+  SourceLocation ForLoc;
+  SourceLocation LParenLoc;
+  SourceLocation ColonLoc;
+  SourceLocation RParenLoc;
+
+protected:
+  enum SubStmt {
+    INIT,
----------------
tbaederr wrote:

I don't think we capitalize enum members like that (if they aren't global at least)?

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


More information about the cfe-commits mailing list