mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 05:13:54 -06:00

Enum 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-28-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
3 lines
177 B
JSON
3 lines
177 B
JSON
# we reject enums where members will clash when mapped to C enum
|
|
{ 'pragma': { 'member-name-exceptions': [ 'MyEnum' ] } }
|
|
{ 'enum': 'MyEnum', 'data': [ 'one-two', 'one_two' ] }
|