]> Git Repo - qemu.git/commit - scripts/qapi-visit.py
qapi-visit: Use common idiom in gen_visit_fields_decl()
authorEric Blake <[email protected]>
Thu, 18 Feb 2016 06:48:25 +0000 (23:48 -0700)
committerMarkus Armbruster <[email protected]>
Fri, 19 Feb 2016 10:08:57 +0000 (11:08 +0100)
commit2208d64998c5f867ccee7eeee298971685bf822d
treed265df29412f0eba418ebc28abc169891da75504
parent1de5d4ca0752138034305f3d4e8fe17ef6503569
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 <[email protected]>
Message-Id: <1455778109[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
scripts/qapi-visit.py
This page took 0.025437 seconds and 4 git commands to generate.