[PATCH] D141215: [clang-repl][WIP] Implement pretty printing

Jun Zhang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 7 22:58:50 PST 2023


junaire created this revision.
Herald added a project: All.
junaire requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This patch implements the initial value pretty printing for clang-repl.
In general, when clang-repl finds something need to print, it will
synthesizes a call to `__InterpreterPrettyPrint` and then calls JIT.

Signed-off-by: Jun Zhang <jun at junz.org>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141215

Files:
  clang/include/clang/Interpreter/Interpreter.h
  clang/lib/Interpreter/CMakeLists.txt
  clang/lib/Interpreter/IncrementalParser.cpp
  clang/lib/Interpreter/IncrementalParser.h
  clang/lib/Interpreter/Interpreter.cpp
  clang/lib/Interpreter/PrettyPrint.cpp
  clang/tools/clang-repl/CMakeLists.txt
  clang/tools/clang-repl/ClangRepl.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141215.487143.patch
Type: text/x-patch
Size: 19285 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230108/35032210/attachment-0001.bin>


More information about the cfe-commits mailing list