[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 17 04:14:16 PDT 2025
================
@@ -300,16 +640,17 @@ llvm::Expected<Expr *> Interpreter::ExtractValueFromExpr(Expr *E) {
using namespace clang;
// Temporary rvalue struct that need special care.
-REPL_EXTERNAL_VISIBILITY void *
+REPL_EXTERNAL_VISIBILITY extern "C" void *
----------------
AaronBallman wrote:
That didn't seem to work, but then why does this work already?
https://github.com/llvm/llvm-project/blob/b7c14b6ded300b9190fe0b65881d04c54b2a9fbd/clang/lib/Interpreter/InterpreterValuePrinter.cpp#L311
But this one uses a different style: https://github.com/llvm/llvm-project/blob/b7c14b6ded300b9190fe0b65881d04c54b2a9fbd/clang/lib/Interpreter/InterpreterValuePrinter.cpp#L303
https://github.com/llvm/llvm-project/pull/148701
More information about the cfe-commits
mailing list