[all-commits] [llvm/llvm-project] 675a29: [libTooling] Add support for smart pointers to rel...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Tue Jan 5 09:58:07 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 675a2973ee7745d1859e3b72be40a803dd349e55
      https://github.com/llvm/llvm-project/commit/675a2973ee7745d1859e3b72be40a803dd349e55
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2021-01-05 (Tue, 05 Jan 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 support for smart pointers to relevant Transformer `Stencil`s.

Stencils `maybeDeref` and `maybeAddressOf` are designed to handle nodes that may
be pointers. Currently, they only handle native pointers. This patch extends the
support to recognize smart pointers and handle them as well.

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




More information about the All-commits mailing list