]> git.proxmox.com Git - mirror_qemu.git/commit
qapi tpm: Elide redundant has_FOO in generated C
authorMarkus Armbruster <armbru@redhat.com>
Fri, 4 Nov 2022 16:07:07 +0000 (17:07 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 14 Dec 2022 19:05:07 +0000 (20:05 +0100)
commitced2939685bb306431c2ffb1620460dfb6093a1a
tree6552f7bbc01cd0ed88e77e276bff4bb4ba8847b0
parent1dde96d65fcfd44b4097cdbbad21d2e40167aa1c
qapi tpm: 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 qapi/tpm.json.

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

Cc: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Message-Id: <20221104160712.3005652-26-armbru@redhat.com>
backends/tpm/tpm_passthrough.c
monitor/hmp-cmds.c
scripts/qapi/schema.py