1
0
mirror of synced 2026-02-17 21:36:55 +00:00
Files
YosysHQ.yosys/passes/cmds
Krystine Sherwin 1529d991fd log_help: Refactor help content adding
Content is now added to the `ContentListing` rather than the `PrettyHelp`.
`open_*` methods return the `ContentListing` that was added instead of leaving a hanging continuation.
This allows for (e.g.) options to be added directly to optiongroups, instead of requiring that groups be closed before continuation.
This also means that all `PrettyHelp`s are a listing, with the actual log being called by the default `Pass::help()`; making the mode field redundant.
Added `PrettyHelp::log_help()` which replaces the `PrettyHelp::Mode::LOG` logic.
Added `ContentListing::back()` which just returns the last element of the underlying content vector.
Some of the content tracking was made redundant and removed, in particular `PrettyHelp::_current_listing` and `ContentListing::parent`.

Converted `ContentListing` to a class instead of a struct, adjusting constructors to match.
Added `ContentListing` constructor that accepts a `source_location`.

Update `HelpPass::dump_cmds_json()` for new log_help.
2025-07-21 10:35:18 +12:00
..
2025-03-20 17:20:36 +13:00
2025-04-08 11:58:05 +12:00
2024-05-21 16:18:03 +02:00
2025-04-22 17:42:52 +12:00
2025-05-10 09:59:13 +12:00
2025-03-19 18:28:50 +01:00
2024-08-07 13:02:00 +02:00
2025-07-16 17:11:19 +02:00
2024-06-07 08:26:59 +02:00
2025-05-22 18:52:33 -06:00
2025-07-07 16:16:57 +02:00
2025-04-08 11:58:05 +12:00
2025-04-08 11:58:05 +12:00
2024-12-06 11:25:45 +01:00
2025-04-08 11:58:05 +12:00
2024-09-29 17:15:59 +02:00
2021-08-11 13:34:10 +02:00
2025-04-08 11:58:05 +12:00