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

Description

Adds a dot 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:83

Parameters

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