ΒΆllvm::Optional<std::string> buildArrow(
    const clang::Expr& E,
    const clang::ASTContext& Context)

Description

Adds an arrow to the end of the given expression, but adds parentheses when needed by the syntax, and simplifies to `.` when possible, e.g.: `x` becomes `x->` ` &a ` becomes `a.` `a+b` becomes `(a+b)->` DEPRECATED. Use `buildAccess`.

Declared at: clang/include/clang/Tooling/Transformer/SourceCodeBuilders.h:93

Parameters

const clang::Expr& E
const clang::ASTContext& Context