qapi: Enforce struct member naming rules
Struct members, including command arguments, event data, and union inline base members, should use '-', not '_'. Enforce this. Fix the fixable offenders (all in tests/), and add the remainder to pragma member-name-exceptions. Signed-off-by:Markus Armbruster <armbru@redhat.com> Message-Id: <20210323094025.3569441-27-armbru@redhat.com> Reviewed-by:
Eric Blake <eblake@redhat.com>
Showing
- docs/devel/qapi-code-gen.txt 2 additions, 1 deletiondocs/devel/qapi-code-gen.txt
- qapi/pragma.json 17 additions, 0 deletionsqapi/pragma.json
- qga/qapi-schema.json 4 additions, 0 deletionsqga/qapi-schema.json
- scripts/qapi/expr.py 3 additions, 2 deletionsscripts/qapi/expr.py
- tests/qapi-schema/qapi-schema-test.json 6 additions, 2 deletionstests/qapi-schema/qapi-schema-test.json
- tests/qapi-schema/qapi-schema-test.out 2 additions, 2 deletionstests/qapi-schema/qapi-schema-test.out
- tests/qapi-schema/struct-member-name-clash.err 1 addition, 1 deletiontests/qapi-schema/struct-member-name-clash.err
- tests/qapi-schema/struct-member-name-clash.json 1 addition, 0 deletionstests/qapi-schema/struct-member-name-clash.json
Loading
Please register or sign in to comment