]> git.proxmox.com Git - mirror_qemu.git/commit - tests/Makefile.include
qapi: add a dictionary form with 'name' key for enum members
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 13 Dec 2018 12:37:08 +0000 (16:37 +0400)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 13 Dec 2018 18:20:11 +0000 (19:20 +0100)
commitea738b21685814dc54352858afabc2ff33ade53e
treecd526f6afd83905a11c8725fd716c2fc2070d591
parent7e80d48001c8ebc11358596f10ba48daddee05f5
qapi: add a dictionary form with 'name' key for enum members

Desugar the enum NAME form to { 'name': NAME }. This will allow to add
new enum members, such as 'if' in the following patch.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20181213123724.4866-7-marcandre.lureau@redhat.com>
Message-Id: <20181213123724.4866-8-marcandre.lureau@redhat.com>
Message-Id: <20181213123724.4866-9-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Harmless accidental move backed out, long line wrapped, patches
squashed]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
14 files changed:
scripts/qapi/common.py
tests/Makefile.include
tests/qapi-schema/enum-bad-member.err [new file with mode: 0644]
tests/qapi-schema/enum-bad-member.exit [new file with mode: 0644]
tests/qapi-schema/enum-bad-member.json [new file with mode: 0644]
tests/qapi-schema/enum-bad-member.out [new file with mode: 0644]
tests/qapi-schema/enum-dict-member-unknown.err [new file with mode: 0644]
tests/qapi-schema/enum-dict-member-unknown.exit [new file with mode: 0644]
tests/qapi-schema/enum-dict-member-unknown.json [new file with mode: 0644]
tests/qapi-schema/enum-dict-member-unknown.out [new file with mode: 0644]
tests/qapi-schema/enum-dict-member.err [deleted file]
tests/qapi-schema/enum-dict-member.exit [deleted file]
tests/qapi-schema/enum-dict-member.json [deleted file]
tests/qapi-schema/enum-dict-member.out [deleted file]