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:
Markus Armbruster 2021-03-23 10:40:24 +01:00
parent 5aceeac04d
commit 407efbf9e7
4 changed files with 13 additions and 3 deletions

View file

@ -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'