[clang] [Clang] [C++26] Expansion Statements (Part 1: AST) (PR #169680)

via cfe-commits cfe-commits at lists.llvm.org
Mon May 4 08:18:07 PDT 2026


================
@@ -38,6 +38,18 @@ static Attr *handleFallThroughAttr(Sema &S, Stmt *St, const ParsedAttr &A,
     return nullptr;
   }
 
+  // CWG 3045: The innermost enclosing switch statement of a fallthrough
+  // statement S shall be contained in the innermost enclosing expansion
+  // statement (8.7 [stmt.expand]) of S, if any.
----------------
Sirraide wrote:

I wasn’t planning to add one but I do have a test for it in patch 9 I think

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


More information about the cfe-commits mailing list