[cling] Replace usage of TextInput with LineEditor#16438
[cling] Replace usage of TextInput with LineEditor#16438devajithvs merged 3 commits intoroot-project:masterfrom
Conversation
Test Results 22 files 22 suites 3d 23h 28m 48s ⏱️ Results for commit d0efa98. ♻️ This comment has been updated with latest results. |
hahnjo
left a comment
There was a problem hiding this comment.
We need to decide what to do with CLING_HISTSIZE. If we want to support it, the necessary changes should be upstreamed to LLVM first and then backported to our fork. Note that it would be a first and prevent building against a vanilla LLVM!
This was implemented to be able to set the history to 0 so that we do not get different pointers across gdb runs, iirc. |
From yesterday's discussion, it seems that this does not align with the idea of using a prebuilt vanilla LLVM. I'm tending towards deprecating Regardless, I think the ability to set a history size would be a nice feature for all the tools using it. So, I will try to upstream this anyways. |
Disabling the history can probably be implemented differently, maybe that's enough. |
|
99a1261 to
e55b9eb
Compare
26a6905 to
1c3c729
Compare
|
This is marked draft because standalone cling repository will need |
|
@devajithvs this change is approved, can this go in? |
|
Yes, PR is ready (Ruff errors are unrelated to the changes). Will still need to remove |
1c3c729 to
2cb4b51
Compare
- Update tests as errors/warnings will add a new line in TextInput - Add `CLING_HISTSIZE` functionality with the newly added LLVM patch. - Update `cling_history` test to match encoded libedit history
2cb4b51 to
d0efa98
Compare
This Pull request:
CLING. This moves the codebase closer to clang-repl and might help in future changes. This will help in removing this whole folder fromCLING- https://github.com/root-project/cling/tree/master/lib/UserInterface/textinputROOTfor complete removal of TextInput. Not as straightforward as thissetHistorySizeChanges or fixes:
Checklist:
This PR fixes #