diff options
| author | Markus Armbruster | 2019-09-14 17:35:00 +0200 |
|---|---|---|
| committer | Markus Armbruster | 2019-09-24 14:07:23 +0200 |
| commit | fe9c4dcf9021f4111f37373bb71ef9e08863c349 (patch) | |
| tree | 2db890a0c3e3ea7b152d7c96ede68d13c5cec89c /tests/qapi-schema/string-code-point-31.err | |
| parent | qapi: Fix missing 'if' checks in struct, union, alternate 'data' (diff) | |
| download | qemu-fe9c4dcf9021f4111f37373bb71ef9e08863c349.tar.gz qemu-fe9c4dcf9021f4111f37373bb71ef9e08863c349.tar.xz qemu-fe9c4dcf9021f4111f37373bb71ef9e08863c349.zip | |
qapi: Normalize 'if' in check_exprs(), like other sugar
We normalize shorthand to longhand forms in check_expr(): enumeration
values with normalize_enum(), feature values with
normalize_features(), struct members, union branches and alternate
branches with normalize_members(). If conditions are an exception: we
normalize them in QAPISchemaEntity.check() and
QAPISchemaMember.__init(), with listify_cond(). The idea goes back to
commit 2cbc94376e "qapi: pass 'if' condition into QAPISchemaEntity
objects", v3.0.0.
Normalize in check_expr() instead, with new helper normalize_if().
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190914153506.2151-14-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qapi-schema/string-code-point-31.err')
0 files changed, 0 insertions, 0 deletions
