[all-commits] [llvm/llvm-project] f42187: [Clang] Implement P0963R3 "Structured binding decl...

Younan Zhang via All-commits all-commits at lists.llvm.org
Tue Mar 11 00:42:18 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f4218753ad93dd44b019e38bae61dceb93514aee
      https://github.com/llvm/llvm-project/commit/f4218753ad93dd44b019e38bae61dceb93514aee
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2025-03-11 (Tue, 11 Mar 2025)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    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.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/AST/ByteCode/if.cpp
    A clang/test/CodeGen/p0963r3.cpp
    M clang/test/Parser/cxx1z-decomposition.cpp
    M clang/test/Parser/decomposed-condition.cpp
    M clang/test/SemaCXX/decomposed-condition.cpp
    M clang/www/cxx_status.html

  Log Message:
  -----------
  [Clang] Implement P0963R3 "Structured binding declaration as a condition" (#130228)

This implements the R2 semantics of P0963.

The R1 semantics, as outlined in the paper, were introduced in Clang 6.
In addition to that, the paper proposes swapping the evaluation order of
condition expressions and the initialization of binding declarations
(i.e. std::tuple-like decompositions).



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