mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-20 10:59:26 +00:00
407efbf9e7
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>
4 lines
177 B
JSON
4 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' ] }
|