]> Git Repo - qemu.git/commit - scripts/qapi/common.py
qapi: Add 'if' to implicit struct members
authorMarc-André Lureau <[email protected]>
Thu, 13 Dec 2018 12:37:15 +0000 (16:37 +0400)
committerMarkus Armbruster <[email protected]>
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 <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Message-Id: <20181213123724[email protected]>
Message-Id: <20181213123724[email protected]>
[Patches squashed, commit message tweaked]
Signed-off-by: Markus Armbruster <[email protected]>
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
This page took 0.028289 seconds and 4 git commands to generate.