summaryrefslogtreecommitdiffstats
path: root/tests/test-qmp-input-visitor.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2016-02-17 23:48:25 -0700
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:45:30 -0600
commit09e4934b821f5b44a15786d1c3430186beccafc1 (patch)
tree58c9db5ae139e706a2bd911731f80c9109ab335b /tests/test-qmp-input-visitor.c
parentdae9f4e47af5844c42b9da963e40ac5825c57476 (diff)
downloadhqemu-09e4934b821f5b44a15786d1c3430186beccafc1.zip
hqemu-09e4934b821f5b44a15786d1c3430186beccafc1.tar.gz
qapi-visit: Use common idiom in gen_visit_fields_decl()
We have several instances of methods that do an early exit if output is not needed, then log that output is being generated, and finally produce the output; see qapi-types.py:gen_object() and qapi-visit.py:gen_visit_implicit_struct(). The odd man out was gen_visit_fields_decl(); rearrange it to be more like the others. No semantic change or difference to generated code. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1455778109-6278-12-git-send-email-eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/test-qmp-input-visitor.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud