[all-commits] [llvm/llvm-project] 0f1a01: [lldb] Add test to document alias tab completion b...

David Spickett via All-commits all-commits at lists.llvm.org
Fri Sep 8 09:08:15 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f1a01807c137736236fcb9ea4253804e5ec7cf8
      https://github.com/llvm/llvm-project/commit/0f1a01807c137736236fcb9ea4253804e5ec7cf8
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M lldb/test/API/functionalities/completion/TestCompletion.py

  Log Message:
  -----------
  [lldb] Add test to document alias tab completion behaviour (#65760)

While looking at https://github.com/llvm/llvm-project/issues/49528 I
found that, happily, aliases can now be tab completed.

However, if there is a built-in match that will always be taken. Which
is a bit surprising, though logical if we don't want people really
messing up their commands I guess.

Meaning "b" tab completes to our built-in breakpoint alias, before it
looks at any of the aliases. "bf" doesn't match "b", so it looks through
the aliases.

I didn't find any tests for this in the obvious places, so this adds
some.




More information about the All-commits mailing list