mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-26 23:45:47 +00:00
qapi: Tidy up whitespace in generated code
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20221104160712.3005652-3-armbru@redhat.com>
This commit is contained in:
parent
a680ea072f
commit
7df184613c
@ -1664,7 +1664,6 @@ Example::
|
||||
$ cat qapi-generated/example-qapi-commands.c
|
||||
[Uninteresting stuff omitted...]
|
||||
|
||||
|
||||
static void qmp_marshal_output_UserDefOne(UserDefOne *ret_in,
|
||||
QObject **ret_out, Error **errp)
|
||||
{
|
||||
|
@ -83,7 +83,7 @@ def gen_call(name: str,
|
||||
|
||||
trace_qmp_enter_%(name)s(req_json->str);
|
||||
}
|
||||
''',
|
||||
''',
|
||||
upper=upper, name=name)
|
||||
|
||||
ret += mcgen('''
|
||||
@ -124,13 +124,13 @@ def gen_call(name: str,
|
||||
|
||||
trace_qmp_exit_%(name)s(ret_json->str, true);
|
||||
}
|
||||
''',
|
||||
''',
|
||||
upper=upper, name=name)
|
||||
else:
|
||||
ret += mcgen('''
|
||||
|
||||
trace_qmp_exit_%(name)s("{}", true);
|
||||
''',
|
||||
''',
|
||||
name=name)
|
||||
|
||||
return ret
|
||||
@ -316,7 +316,6 @@ class QAPISchemaGenCommandVisitor(QAPISchemaModularCVisitor):
|
||||
#include "qapi/error.h"
|
||||
#include "%(visit)s.h"
|
||||
#include "%(commands)s.h"
|
||||
|
||||
''',
|
||||
commands=commands, visit=visit))
|
||||
|
||||
|
@ -196,7 +196,6 @@ class QAPISchemaGenEventVisitor(QAPISchemaModularCVisitor):
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "qapi/qmp-event.h"
|
||||
|
||||
''',
|
||||
events=events, visit=visit,
|
||||
prefix=self._prefix))
|
||||
|
Loading…
x
Reference in New Issue
Block a user