[all-commits] [llvm/llvm-project] b6c218: [libTooling] Add "switch"-like Stencil combinator

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Thu Oct 14 09:46:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b6c218d4fdb74c0ee467e078721438c3396dc599
      https://github.com/llvm/llvm-project/commit/b6c218d4fdb74c0ee467e078721438c3396dc599
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2021-10-14 (Thu, 14 Oct 2021)

  Changed paths:
    M clang/include/clang/Tooling/Transformer/Stencil.h
    M clang/lib/Tooling/Transformer/Stencil.cpp
    M clang/unittests/Tooling/StencilTest.cpp

  Log Message:
  -----------
  [libTooling] Add "switch"-like Stencil combinator

Adds `selectBound`, a `Stencil` combinator that allows the user to supply multiple alternative cases, discriminated by bound node IDs.

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




More information about the All-commits mailing list