mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
qapi: Enforce enum member naming rules
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>
This commit is contained in:
parent
5aceeac04d
commit
407efbf9e7
4 changed files with 13 additions and 3 deletions
|
@ -1,2 +1,2 @@
|
|||
enum-clash-member.json: In enum 'MyEnum':
|
||||
enum-clash-member.json:2: value 'one_two' collides with value 'one-two'
|
||||
enum-clash-member.json:3: value 'one_two' collides with value 'one-two'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue