HomePhabricator

[libTooling] Add support for smart pointers to relevant Transformer `Stencil`s.

Authored by ymandel on Dec 21 2020, 6:49 AM.

Description

[libTooling] Add support for smart pointers to relevant Transformer Stencils.

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