mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
5aceeac04d
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>
5 lines
230 B
JSON
5 lines
230 B
JSON
# C member name collision
|
|
# Reject members that clash when mapped to C names (we would have two 'a_b'
|
|
# members).
|
|
{ 'pragma': { 'member-name-exceptions': [ 'Oops' ] } }
|
|
{ 'struct': 'Oops', 'data': { 'a-b': 'str', 'a_b': 'str' } }
|