[PATCH] D141215: [clang-repl] Introduce Value to capture expression results
Jun Zhang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 1 08:18:59 PDT 2023
junaire marked an inline comment as done.
junaire added inline comments.
================
Comment at: clang/lib/Interpreter/Interpreter.cpp:211
+ void __clang_Interpreter_SetValueNoAlloc(void*,void*,void*,unsigned long long);
+ template <class T, class = T (*)() /*disable for arrays*/>
+ void __clang_Interpreter_SetValueCopyArr(T* Src, void* Placement, unsigned long Size) {
----------------
v.g.vassilev wrote:
> Can you add an `#ifdef __cplusplus` and add a value printing tests that run in clang-repl in C mode?
After a private chat, we decide to disable the feature in C mode because it sounds like a bad idea to give C incomplete value printing support.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141215/new/
https://reviews.llvm.org/D141215
More information about the cfe-commits
mailing list