diff options
author | Marc-André Lureau | 2018-12-13 13:37:20 +0100 |
---|---|---|
committer | Markus Armbruster | 2018-12-14 06:52:48 +0100 |
commit | a35c9bf82aff4e80a90f0adfc7383d03749db0b6 (patch) | |
tree | 8a27cdb33977b141cf15c1ca6ba6dd3c2a9b4876 /tests/qapi-schema/doc-good.json | |
parent | qapi: Add #if conditions to generated code members (diff) | |
download | qemu-a35c9bf82aff4e80a90f0adfc7383d03749db0b6.tar.gz qemu-a35c9bf82aff4e80a90f0adfc7383d03749db0b6.tar.xz qemu-a35c9bf82aff4e80a90f0adfc7383d03749db0b6.zip |
qapi: add 'If:' condition to enum values documentation
Use a common function to generate the "If:..." line.
While at it, get rid of the existing \n\n (no idea why it was
there). Use a line-break in member description, this seems to look
slightly better in the plaintext version.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20181213123724.4866-19-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/doc-good.json')
-rw-r--r-- | tests/qapi-schema/doc-good.json | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/qapi-schema/doc-good.json b/tests/qapi-schema/doc-good.json index 984cd8ed06..1cd4935710 100644 --- a/tests/qapi-schema/doc-good.json +++ b/tests/qapi-schema/doc-good.json @@ -55,7 +55,9 @@ # # @two is undocumented ## -{ 'enum': 'Enum', 'data': [ 'one', 'two' ], 'if': 'defined(IFCOND)' } +{ 'enum': 'Enum', 'data': + [ { 'name': 'one', 'if': 'defined(IFONE)' }, 'two' ], + 'if': 'defined(IFCOND)' } ## # @Base: |