Markus Armbruster 8c3f8e7721 qapi-visit: Fix generated code when schema has forward refs
The visit_type_implicit_FOO() are generated on demand, right before
their first use.  Used by visit_type_STRUCT_fields() when STRUCT has
base FOO, and by visit_type_UNION() when flat UNION has member a FOO.

If the schema defines FOO after its first use as struct base or flat
union member, visit_type_implicit_FOO() calls
visit_type_implicit_FOO() before its definition, which doesn't
compile.

Rearrange qapi-schema-test.json to demonstrate the bug.

Fix by generating the necessary forward declaration.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2015-09-04 15:47:13 +02:00
2015-09-02 14:56:39 +01:00
2015-09-03 14:33:03 +01:00
2015-08-18 17:06:41 +01:00
2015-09-02 14:56:39 +01:00
2015-09-02 14:56:39 +01:00
2015-09-01 13:16:26 -05:00
2015-07-27 22:44:47 +03:00
2015-08-14 23:40:32 +02:00
2015-08-14 23:40:32 +02:00
2015-09-03 16:17:28 +01:00
2015-09-03 15:46:10 +01:00
2015-09-03 16:17:28 +01:00
2015-09-01 13:16:26 -05:00
2015-09-01 13:16:26 -05:00
2015-08-19 16:29:53 +01:00
2015-08-11 23:15:55 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%