[Lldb-commits] [lldb] [lldb] Treat user aliases the same as built-ins when tab completing (PR #65974)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 11 10:05:00 PDT 2023


================
@@ -20,7 +20,7 @@ def test_command_abbreviations_and_aliases(self):
         self.assertTrue(result.Succeeded())
         self.assertEqual("apropos script", result.GetOutput())
 
-        command_interpreter.ResolveCommand("h", result)
+        command_interpreter.ResolveCommand("he", result)
----------------
DavidSpickett wrote:

```
$ ./bin/lldb
(lldb) h
Ambiguous command 'h'. Possible matches:
        help
        history
<...>
'history' is an abbreviation for 'session history'
```

I figured if we're treating aliases and abreviations and the like all the same, then changing this test was the logical thing to do. Unless abbreviations should never resolve to aliases?

https://github.com/llvm/llvm-project/pull/65974


More information about the lldb-commits mailing list