[libTooling] Add support for smart pointers to relevant Transformer `Stencil`s.
authorYitzhak Mandelbaum <yitzhakm@google.com>
Mon, 21 Dec 2020 14:49:17 +0000 (14:49 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Tue, 5 Jan 2021 17:57:41 +0000 (17:57 +0000)
commit675a2973ee7745d1859e3b72be40a803dd349e55
tree3e4b07408252e6c6065b357d45ba483c3b9e7fe1
parentc82beaba319657d93a62523a65f8969aad9ecab1
[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
clang/include/clang/Tooling/Transformer/Stencil.h
clang/lib/Tooling/Transformer/Stencil.cpp
clang/unittests/Tooling/StencilTest.cpp