qapi: Enforce struct member naming rules
commit5aceeac04de50e3a9d5c2a965379324659a94be0
authorMarkus Armbruster <armbru@redhat.com>
Tue, 23 Mar 2021 09:40:23 +0000 (23 10:40 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 23 Mar 2021 21:31:43 +0000 (23 22:31 +0100)
treedc467a25f992c721e8dd87fc2a1533809fbcf468
parente75d4225b76842ec899f25e8ff39b070119f033f
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>
docs/devel/qapi-code-gen.txt
qapi/pragma.json
qga/qapi-schema.json
scripts/qapi/expr.py
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/qapi-schema-test.out
tests/qapi-schema/struct-member-name-clash.err
tests/qapi-schema/struct-member-name-clash.json