================
@@ -273,6 +281,10 @@ def test_auto_completions(self):
],
)
+ # TODO: Note we are not checking the result because the `expression
--` command adds an extra character
----------------
da-viper wrote:
there is currently a bug in the `expression --` completion in the normal cli.
```cpp
int main() {
int ƒake_f = 100;
return 0; // breakpoint
}
```
stopping at the breakpoint type
`expression -- f|` the cursor is after the f press tab. you will see it adds
another `ƒ` character.
you can also try it from the python script
```py
(lldb) script
>>> matches = lldb.SBStringList()
>>> desc = lldb.SBStringList()
>>> inter = lldb.debugger.GetCommandInterpreter()
>>> line = "expression -- ƒ"
>>> cursor = len(line) + 1 # because ƒ is two bytes long
>>> inter.HandleCompletionWithDescriptions(line, cursor, 0, 10, matches, desc)
1
>>> for match in matches:
... print(match)
...
ƒake_f # the common prefix
ƒƒake_f
```
https://github.com/llvm/llvm-project/pull/176211
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits