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>
6 lines
230 B
JSON
6 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' } }
|