[all-commits] [llvm/llvm-project] ef4635: [clang][dataflow] Add support for structured bindi...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Fri Dec 9 10:58:14 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef4635452f3a23ee29f7586148e19e8c84471a59
      https://github.com/llvm/llvm-project/commit/ef4635452f3a23ee29f7586148e19e8c84471a59
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2022-12-09 (Fri, 09 Dec 2022)

  Changed paths:
    M clang/lib/Analysis/FlowSensitive/Transfer.cpp
    M clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
    M clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
    M clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp

  Log Message:
  -----------
  [clang][dataflow] Add support for structured bindings of tuple-like types.

This patch adds interpretation of binding declarations resulting from a
structured binding (`DecompositionDecl`) to a tuple-like type. Currently, the
framework only supports binding to a struct.

Fixes issue #57252.

Differential Revision: https://reviews.llvm.org/D139544




More information about the All-commits mailing list