diff options
author | Vassil Vassilev <v.g.vassilev@gmail.com> | 2025-07-19 09:25:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-19 09:25:27 +0300 |
commit | 9bf7d04c4386daf1ef0acf95782a59855c98474a (patch) | |
tree | 3230ebe6ebcb7d0240712c8bcc55fa24fe2c244b /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | c875bb8eef6c60e7cd5814fdbab149abb86efa30 (diff) | |
download | llvm-9bf7d04c4386daf1ef0acf95782a59855c98474a.zip llvm-9bf7d04c4386daf1ef0acf95782a59855c98474a.tar.gz llvm-9bf7d04c4386daf1ef0acf95782a59855c98474a.tar.bz2 |
[clang-repl] Lay the basic infrastructure for pretty printing of types (#148701)
The idea is to store a type-value pair in clang::Value which is updated
by the interpreter runtime. The class copies builtin types and boxes
non-builtin types to provide some lifetime control.
The patch enables default printers for C and C++ using a very
minimalistic approach. We handle enums, arrays and user types. Once we
land this we can focus on enabling user-defined pretty-printers which
take control over printing of types
The work started as part of https://reviews.llvm.org/D146809, then we
created a giant in https://github.com/llvm/llvm-project/pull/84769
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions