diff options
author | John Harrison <harjohn@google.com> | 2023-07-13 15:50:06 -0700 |
---|---|---|
committer | David Goldman <davg@google.com> | 2023-07-19 21:04:12 +0000 |
commit | 3d1f89c2e37c4cf9017842a7d04ae07a5e096d08 (patch) | |
tree | ed03920f88973c3945c1aa07440d92cb8d5a48fe /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | b8a20658fee019fe9126a29f930ddd5dedec51ff (diff) | |
download | llvm-3d1f89c2e37c4cf9017842a7d04ae07a5e096d08.zip llvm-3d1f89c2e37c4cf9017842a7d04ae07a5e096d08.tar.gz llvm-3d1f89c2e37c4cf9017842a7d04ae07a5e096d08.tar.bz2 |
[lldb-vscode] Creating a new flag for adjusting the behavior of evaluation repl expressions to allow users to more easily invoke lldb commands.
This adds a new flag and lldb runtime command to allow users to manage the behavior of the lldb-vscode evaluate repl request.
When evaluating a repl context this now has runtime managed flag for control how the repl behaviors with the follow values:
* `variable` - the existing behavior, with this mode requests are evaluted in the current frame context as variable expressions. To trigger a lldb command prefix an expression with ` and it will be evaluted as an lldb command.
* `command` - all expressions are evaluated as lldb commands.
* `auto` - An alternative mode that will attempt to determine if the expression is an lldb command or a variable expression. Based off the intepreted results the expression will be evaluted either as a command or an expression.
Additionally, I enabled completions and ensured they work with the new repl expression behavior to provide auto-completes.
This commit includes updates to the tests to verify the new behavior after the previous failures from submitting https://reviews.llvm.org/D154030.
Differential Revision: https://reviews.llvm.org/D155248
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions