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

Description

Builds idiomatic source for taking the address of `E`: prefix with ` & ` but simplify when it already begins with `*`.

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

Parameters

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

Returns

empty string on failure.