ΒΆclang::transformer::Stencil access(
    llvm::StringRef BaseId,
    clang::transformer::Stencil Member)

Description

Constructs a `MemberExpr` that accesses the named member (\p Member) of the object bound to \p BaseId. The access is constructed idiomatically: if \p BaseId is bound to `e` and \p Member identifies member `m`, then returns `e->m`, when e is a pointer, `e2->m` when e = `*e2` and `e.m` otherwise. Additionally, `e` is wrapped in parentheses, if needed.

Declared at: clang/include/clang/Tooling/Transformer/Stencil.h:103

Parameters

llvm::StringRef BaseId
clang::transformer::Stencil Member