qemu-e2k/scripts/qapi
Anton Nefedov 800877bb16 qapi: allow empty branches in flat unions
It often happens that just a few discriminator values imply extra data in
a flat union. Existing checks did not make possible to leave other values
uncovered. Such cases had to be worked around by either stating a dummy
(empty) type or introducing another (subset) discriminator enumeration.

Both options create redundant entities in qapi files for little profit.

With this patch it is not necessary anymore to add designated union
fields for every possible value of a discriminator enumeration.

Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Message-Id: <1529311206-76847-2-git-send-email-anton.nefedov@virtuozzo.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2018-06-22 16:33:46 +02:00
..
__init__.py
commands.py qapi: introduce new cmd option "allow-preconfig" 2018-05-30 13:19:09 -03:00
common.py qapi: allow empty branches in flat unions 2018-06-22 16:33:46 +02:00
doc.py qapi: introduce new cmd option "allow-preconfig" 2018-05-30 13:19:09 -03:00
events.py qapi/events: generate event enum in main module 2018-06-22 16:33:46 +02:00
introspect.py qapi: introduce new cmd option "allow-preconfig" 2018-05-30 13:19:09 -03:00
types.py qapi: allow empty branches in flat unions 2018-06-22 16:33:46 +02:00
visit.py qapi: allow empty branches in flat unions 2018-06-22 16:33:46 +02:00