]> xenbits.xensource.com Git - qemu-xen.git/commit
qapi tests: Elide redundant has_FOO in generated C
authorMarkus Armbruster <armbru@redhat.com>
Fri, 4 Nov 2022 16:06:47 +0000 (17:06 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 13 Dec 2022 17:31:37 +0000 (18:31 +0100)
commit4b2fc7dbc4203c52b7726249328fcde49626f565
treeec71ce6387f225a02164d68a74a2c01856709b17
parent44ea9d9be33c8a4cf89132e0dc2b3029733bcaf4
qapi tests: Elide redundant has_FOO in generated C

The has_FOO for pointer-valued FOO are redundant, except for arrays.
They are also a nuisance to work with.  Recent commit "qapi: Start to
elide redundant has_FOO in generated C" provided the means to elide
them step by step.  This is the step for
tests/qapi-schema/qapi-schema-test.json.

Said commit explains the transformation in more detail.  The invariant
violations mentioned there do not occur here.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20221104160712.3005652-6-armbru@redhat.com>
scripts/qapi/schema.py
tests/qtest/qmp-cmd-test.c
tests/unit/test-qmp-cmds.c
tests/unit/test-qmp-event.c
tests/unit/test-qobject-input-visitor.c
tests/unit/test-qobject-output-visitor.c
tests/unit/test-visitor-serialization.c