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>
Showing
- qapi/pragma.json 8 additions, 0 deletionsqapi/pragma.json
- scripts/qapi/expr.py 3 additions, 2 deletionsscripts/qapi/expr.py
- tests/qapi-schema/enum-clash-member.err 1 addition, 1 deletiontests/qapi-schema/enum-clash-member.err
- tests/qapi-schema/enum-clash-member.json 1 addition, 0 deletionstests/qapi-schema/enum-clash-member.json
Loading
Please register or sign in to comment