]> git.proxmox.com Git - mirror_qemu.git/commit
qapi: Add 'if' to implicit struct members
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 13 Dec 2018 12:37:15 +0000 (16:37 +0400)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 13 Dec 2018 18:20:11 +0000 (19:20 +0100)
commitccadd6bcba3bef6c1954f533b10224fb3db7148e
treed59e97424ade573166cc819f24c5ed8303e6aa6d
parent87adbbffd4b03c68d039ce0be5dcfde38a6a7b1b
qapi: Add 'if' to implicit struct members

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

Note that union discriminators may not have 'if' conditionals.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20181213123724.4866-14-marcandre.lureau@redhat.com>
Message-Id: <20181213123724.4866-15-marcandre.lureau@redhat.com>
[Patches squashed, commit message tweaked]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
docs/devel/qapi-code-gen.txt
scripts/qapi/common.py
tests/Makefile.include
tests/qapi-schema/flat-union-invalid-if-discriminator.err [new file with mode: 0644]
tests/qapi-schema/flat-union-invalid-if-discriminator.exit [new file with mode: 0644]
tests/qapi-schema/flat-union-invalid-if-discriminator.json [new file with mode: 0644]
tests/qapi-schema/flat-union-invalid-if-discriminator.out [new file with mode: 0644]
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/qapi-schema-test.out
tests/qapi-schema/test-qapi.py