ΒΆllvm::Optional<std::string> buildDereference(
const clang::Expr& E,
const clang::ASTContext& Context)
llvm::Optional<std::string> buildDereference(
const clang::Expr& E,
const clang::ASTContext& Context)
Description
Builds idiomatic source for the dereferencing of `E`: prefix with `*` but simplify when it already begins with ` & `.
Declared at: clang/include/clang/Tooling/Transformer/SourceCodeBuilders.h:67
Parameters
- const clang::Expr& E
- const clang::ASTContext& Context
Returns
empty string on failure.