[all-commits] [llvm/llvm-project] 01e8dd: [libTooling] Add stencil combinators for nodes tha...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Fri Nov 22 09:49:08 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 01e8dd2e7a852794a60e50f356f171f893503598
      https://github.com/llvm/llvm-project/commit/01e8dd2e7a852794a60e50f356f171f893503598
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2019-11-22 (Fri, 22 Nov 2019)

  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 stencil combinators for nodes that may be pointers or values.

Summary:
Adds combinators `maybeDeref` and `maybeAddressOf` to provide a uniform way to handle
nodes which may be bound to either a pointer or a value (most often in the
context of member expressions). Such polymorphism is already supported by
`access`; these combinators extend it to more general uses.

Reviewers: gribozavr

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list