llvm-c166/lldb/test/Shell
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
..
BoundsSafety
Breakpoint [LLDB][PosixELF] Move m_mem_region_cache to generic ELF layer (#195809) 2026-05-06 18:49:33 +08:00
BuildScript
Commands [lldb/script] Improve scripting extension list output and filtering (#209400) 2026-07-14 15:38:47 -07:00
DAP [lldb-dap] Enumerate platform processes via --list-processes (#197330) 2026-05-14 08:45:06 -07:00
Diagnostics [lldb] Add a GitHub bug reporter (#206607) 2026-06-30 07:58:25 -07:00
Disassemble [LLDB] RISCV feature attribute support and allows overriding additional(default) feature (#147990) 2026-06-10 15:34:24 -07:00
Driver [lldb] Assert lack of trailing period or newlines in diagnostics (#191447) 2026-04-17 12:15:43 -07:00
Error
ExecControl [LLDB] Add module hook implementation (#185465) 2026-04-28 14:07:44 -07:00
Expr [lldb] Don't enable Objective-C in expressions on unsupported formats (#204639) 2026-06-18 11:35:43 -07:00
Heap
helper [lldb][windows] emit a warning if the test target's path exceeds Windows' limit (#198743) 2026-05-20 16:56:52 +01:00
Host
lldb-server [lldb] Fix surprising return values from Log::Enable/DisableChannel (#205561) 2026-06-30 11:04:48 +00:00
Log
Minidump [lldb][test] Remove full stop from expected error messages (#193748) 2026-04-24 08:53:14 +01:00
ObjectFile [lldb] Fix reading global variables on WebAssembly (#205913) 2026-06-26 08:53:12 -07:00
Platform/AutoLoad
Process [lldb][Windows] Support OutputDebugString (#196395) 2026-06-02 15:07:56 +02:00
Quit [lldb] Unify python shebangs (#187257) 2026-04-27 15:01:57 -07:00
Recognizer Revert "[lldb][windows] add assert frame recognizer Windows (#197282)" (#198263) 2026-05-18 12:16:51 +02:00
Register [lldb] Add comma separator in watchpoint description (#209176) 2026-07-14 08:31:08 +00:00
REPL
RPC
ScriptInterpreter [lldb][bytecode] Disable formatters for Wasm object format (#199124) 2026-05-21 22:33:52 +00:00
Scripts
Settings [lldb] Remove .noindex suffix from test output directory for non-Darwin (#197237) 2026-06-16 11:24:50 -04:00
Subprocess [lldb] Revert stop-on-fork and stop-on-vfork (#207663) 2026-07-06 09:14:59 +01:00
SymbolFile [lldb][Windows] Relax Filecheck requirements in local-variables.cpp (#205574) 2026-06-30 17:29:54 +01:00
Symtab
Target [lldb][Windows] Relax dependent-modules-nodupe-windows OS-DLL ordering (#203305) 2026-06-11 16:58:57 +01:00
Unwind
Watchpoint
.clang-format
CMakeLists.txt
lit-lldb-init.in
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 [LLDB] RISCV feature attribute support and allows overriding additional(default) feature (#147990) 2026-06-10 15:34:24 -07:00