qemu/scripts/qapi
Marc-André Lureau 2cbc94376e qapi: pass 'if' condition into QAPISchemaEntity objects
Built-in objects remain unconditional.  Explicitly defined objects use
the condition specified in the schema.  Implicitly defined objects
inherit their condition from their users.  For most of them, there is
exactly one user, so the condition to use is obvious.  The exception
is wrapped types generated for simple union variants, which can be
shared by any number of simple unions.  The tight condition would be
the disjunction of the conditions of these simple unions.  For now,
use the wrapped type's condition instead.  Much simpler and good
enough for now.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180703155648.11933-3-marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2018-07-03 18:38:53 +02:00
..
__init__.py qapi-gen: New common driver for code and doc generators 2018-03-02 13:14:09 -06:00
commands.py qapi: introduce new cmd option "allow-preconfig" 2018-05-30 13:19:09 -03:00
common.py qapi: pass 'if' condition into QAPISchemaEntity objects 2018-07-03 18:38:53 +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/introspect: Eliminate pointless variable in .visit_end() 2018-06-22 16:33:47 +02: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