Re: [PATCH 5/6] qapi: Fix code generation for empty modules

2019-11-20 Thread Eric Blake
On 11/20/19 12:25 PM, Markus Armbruster wrote: When a sub-module doesn't contain any definitions, we don't generate code for it, but we do generate the #include. We generate code only for modules that get visited. QAPISchema.visit() visits only modules that have definitions. It can visit module

[PATCH 5/6] qapi: Fix code generation for empty modules

2019-11-20 Thread Markus Armbruster
When a sub-module doesn't contain any definitions, we don't generate code for it, but we do generate the #include. We generate code only for modules that get visited. QAPISchema.visit() visits only modules that have definitions. It can visit modules multiple times. Clean this up as follows. Col