Logo
Explore Help
Sign In
starred/qemu
1
0
Fork 0
You've already forked qemu
mirror of https://github.com/qemu/qemu.git synced 2026-10-12 08:07:24 +00:00
Code Issues 380 Packages Projects Releases Wiki Activity
Files
6da170beda33f3e7f1d9242814acd9f428f0f0fb
qemu/tests/qapi-schema/enum-if-invalid.json

4 lines
116 B
JSON
Raw Normal View History

qapi: add 'if' to enum members QAPISchemaMember gains .ifcond for enum members: inherited classes, such as QAPISchemaObjectTypeMember, will thus have an ifcond member after this (those different types will also use the .ifcond to store the condition and generate conditional code in the following patches). The generated code remains unconditional for now. Later patches generate the conditionals. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20181213123724.4866-10-marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
2018-12-13 16:37:11 +04:00
# check invalid 'if' type
qapi: Tidy up unusual line breaks Break lines between members instead of within members. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210917143134.412106-2-armbru@redhat.com>
2021-09-17 16:31:12 +02:00
{ 'enum': 'TestIfEnum',
'data': [ 'foo', { 'name' : 'bar', 'if': { 'val': 'foo' } } ] }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 1106ms Template: 11ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API