qemu/scripts/qapi
Marc-André Lureau 6cc32b0e14 qapi: add 'if' to enum members
QAPISchemaMember gains .ifcond for enum members: inherited classes,
such as QAPISchemaObjectTypeMember, will thus have an ifcond member
after this (those different types will also use the .ifcond to store
the condition and generate conditional code in the following patches).

The generated code remains unconditional for now. Later patches
generate the conditionals.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20181213123724.4866-10-marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2018-12-13 19:20:11 +01:00
..
__init__.py qapi-gen: New common driver for code and doc generators 2018-03-02 13:14:09 -06:00
commands.py qapi/commands: add #if conditions to commands 2018-07-03 18:38:54 +02:00
common.py qapi: add 'if' to enum members 2018-12-13 19:20:11 +01:00
doc.py qapi: change enum visitor and gen_enum* to take QAPISchemaMember 2018-12-13 19:20:11 +01:00
events.py qapi: change enum visitor and gen_enum* to take QAPISchemaMember 2018-12-13 19:20:11 +01:00
introspect.py qapi: change enum visitor and gen_enum* to take QAPISchemaMember 2018-12-13 19:20:11 +01:00
types.py qapi: change enum visitor and gen_enum* to take QAPISchemaMember 2018-12-13 19:20:11 +01:00
visit.py qapi: change enum visitor and gen_enum* to take QAPISchemaMember 2018-12-13 19:20:11 +01:00