llvm-c166/lldb/test/API
Med Ismail Bennani 514b75bbc5
[lldb/script] Improve scripting extension list output and filtering (#209400)
This patch improves `scripting extension list` in three ways.

First, it groups the output by `ScriptedExtension`: instead of one row
per registered plugin instance, one entry per extension is printed with
a combined `Language` field.

Second, it colorizes and visually separates the output. Each entry is
preceded by a dimmed dashed separator; field labels are printed in bold
green, the extension name value in bold cyan as a mini-heading, and
`None` usage values are dimmed, all via the same
`ansi::FormatAnsiTerminalCodes(..., use_color)` idiom
`Breakpoint::GetDescription` uses elsewhere, gracefully no-op when color
is disabled or unsupported. `ScriptedInterfaceUsages::Dump` takes an
optional `use_color` parameter so its own `API Usages:` / `Command
Interpreter Usages:` labels can match.

Third, it adds `-j`/`--json` to emit a JSON array of `{name,
description, languages, api_usages, command_interpreter_usages}` per
extension, mirroring `plugin list`'s existing `-j`. `DoExecute` now
computes the extension grouping once and branches into
`OutputJsonFormat` or `OutputTextFormat`, sharing a
`GetLanguagesForExtension` helper. It also accepts optional positional
`<extension-name>` arguments to filter the listing to specific
extensions (matched via the same case-insensitive
`ScriptInterpreter::StringToExtension` used by `scripting extension
generate`), with completion wired up via `eScriptedExtensionCompletion`.

Also fix a latent lifetime bug in the shared language-collection helper
so it owns its `std::string` values instead of holding `StringRef`s to
temporaries; the JSON path made it observable.

Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
2026-07-14 15:38:47 -07:00
..
accelerator/mock
android/platform
api
arm
assert_messages_test
clear-sbvalue-nonaddressable-bits
commands [lldb/script] Improve scripting extension list output and filtering (#209400) 2026-07-14 15:38:47 -07:00
debuginfod
driver [lldb][Windows] Support modules with long paths (#206099) 2026-07-10 16:10:13 +01:00
functionalities [lldb][test] Fix TestStatusline path resolution in symlinked environments (#209083) 2026-07-13 10:03:16 -05:00
iohandler
lang [lldb][test] Expand blocks test (#208406) 2026-07-10 15:34:00 +01:00
linux [lldb] Correct alignment of register fields (#209140) 2026-07-13 11:22:09 +00:00
lldbutil-tests/failed-to-hit-breakpoint
lua_api
macosx [lldb][test] Add expedited-stack-memory backtrace/locals packet test (#205897) 2026-07-06 10:51:15 +01:00
pointer-nonaddressable-bits
python_api [lldb] Make SBType::FindDirectNestedType work with dynamic types (#207743) 2026-07-09 09:50:18 +02:00
qemu
repl/clang
riscv
sample_test
sanity
source-manager
symbol_ondemand
symstore [lldb] Make timeout for HTTP send/receive in SymbolLocatorSymStore configurable (#192061) 2026-07-13 15:55:13 +02:00
terminal
test_runner/test
test_utils
tools [lldb-dap][test] Fix stackTrace test in symlink environment (#209595) 2026-07-14 15:49:16 -05:00
types
windows
CMakeLists.txt
dotest.py
get_darwin_real_python.py
lit.cfg.py [lldb][Windows] Default to lldb-server when libxml2 is available (#209258) 2026-07-13 21:01:47 +01:00
lit.site.cfg.py.in
lldbtest.py
use_lldb_suite.py