[all-commits] [llvm/llvm-project] d65c76: [Clang] [C++26] Expansion Statements (Part 7: Cons...

Sirraide via All-commits all-commits at lists.llvm.org
Fri Jul 10 13:02:26 PDT 2026


  Branch: refs/heads/users/Sirraide/expansion-stmts-6-destructuring
  Home:   https://github.com/llvm/llvm-project
  Commit: d65c768d480ed88db9ab362e656180f0f15651a8
      https://github.com/llvm/llvm-project/commit/d65c768d480ed88db9ab362e656180f0f15651a8
  Author: Sirraide <aeternalmail at gmail.com>
  Date:   2026-07-10 (Fri, 10 Jul 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticCommonKinds.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/ScopeInfo.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/ByteCode/Compiler.cpp
    M clang/lib/AST/ByteCode/Compiler.h
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/CodeGen/CGDecl.cpp
    M clang/lib/CodeGen/CGStmt.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/lib/Parse/ParseStmt.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaLookup.cpp
    M clang/lib/Sema/SemaStmt.cpp
    A clang/test/AST/ast-dump-expansion-stmt.cpp
    A clang/test/AST/ast-print-expansion-stmts.cpp
    A clang/test/CodeGenCXX/cxx2c-destructuring-expansion-stmt.cpp
    A clang/test/CodeGenCXX/cxx2c-enumerating-expansion-statements.cpp
    A clang/test/CodeGenCXX/cxx2c-expansion-stmts-control-flow.cpp
    A clang/test/CodeGenCXX/cxx2c-expansion-stmts-mangling.cpp
    A clang/test/CodeGenCXX/cxx2c-expansion-stmts-templates.cpp
    A clang/test/CodeGenCXX/cxx2c-iterating-expansion-stmt.cpp
    A clang/test/SemaCXX/cxx2c-expansion-statements-shadow.cpp
    A clang/test/SemaCXX/cxx2c-expansion-stmts-control-flow.cpp
    A clang/test/SemaCXX/cxx2c-expansion-stmts.cpp
    M clang/www/cxx_status.html

  Log Message:
  -----------
  [Clang] [C++26] Expansion Statements (Part 7: Constexpr support and tests) (#169686)

This implements compile-time evaluation of expansion statements. With
this implemented, we can finally test expansion statements properly, so
this also adds a bunch of tests for all three kinds of expansion
statements.

I didn’t add any Sema tests before this because I felt that just testing
that we don’t emit any diagnostics would not have been too useful; with
this patch, we can also test that the behaviour of the generated AST is
correct by evaluating it.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list