qapi: Simplify enum generation
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | qapi: Do not generate default switch case in gen_visit_object_members()scripts/ | +0 | 2 replies | |
| 2/2 | qapi: Generate enum count as definition in gen_enum_lookup()audio/ audio/ migration/ +5 more | +7 | 4 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Richard Henderson | Juan Quintela |
|---|---|---|
| 1/2 | R-b | |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] qapi: Simplify enum generation
QAPI generating enum count as part of the enum forces handling impossible switch cases. Modify qapi/types.py to generate the enum count as a definition.
Do not try to cover the unreachable 'default' case. Clean files covering unreachable foo__MAX case.
Philippe Mathieu-Daudé (2):
qapi: Do not generate default switch case in
gen_visit_object_members()
qapi: Generate enum count as definition in gen_enum_lookup()
audio/audio.c | 6 ------ audio/audio_template.h | 3 --- migration/migration.c | 2 -- replay/replay-input.c | 12 ------------ scripts/qapi/types.py | 11 +++++++---- scripts/qapi/visit.py | 2 -- softmmu/tpm-hmp-cmds.c | 2 -- ui/input-linux.c | 4 ---- ui/input.c | 6 ------ 9 files changed, 7 insertions(+), 41 deletions(-)
Signature · 1 line
2.38.1