diff options
author | Yitzhak Mandelbaum <yitzhakm@google.com> | 2021-12-29 15:46:43 +0000 |
---|---|---|
committer | Yitzhak Mandelbaum <yitzhakm@google.com> | 2022-01-25 19:43:36 +0000 |
commit | 0944c196c58f62299540983e2d10cd7bef60691a (patch) | |
tree | a7966119f0e79fdc72eef7b10168d1ba94139f04 /llvm/lib/Support/CommandLine.cpp | |
parent | ea1ac183f47ebc03051e63f76c4cb3ad3c5b9f3a (diff) | |
download | llvm-0944c196c58f62299540983e2d10cd7bef60691a.zip llvm-0944c196c58f62299540983e2d10cd7bef60691a.tar.gz llvm-0944c196c58f62299540983e2d10cd7bef60691a.tar.bz2 |
[libTooling] Adds more support for constructing object access expressions.
This patch adds a `buildAccess` function, which constructs a string with the
proper operator to use based on the expression's form and type. It also adds two
predicates related to smart pointers, which are needed by `buildAccess` but are
also of general value.
We deprecate `buildDot` and `buildArrow` in favor of the more general
`buildAccess`. These will be removed in a future patch.
Differential Revision: https://reviews.llvm.org/D116377
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions