Re: [PATCH v2 0/3] qapi: Simplify enum generation

2023-03-15 Thread Philippe Mathieu-Daudé
On 15/3/23 12:13, Philippe Mathieu-Daudé wrote: 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 ca

[PATCH v2 0/3] qapi: Simplify enum generation

2023-03-15 Thread Philippe Mathieu-Daudé
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. Since v1: - Update documentation (Markus) - D