diff options
author | Markus Armbruster | 2017-03-15 13:56:55 +0100 |
---|---|---|
committer | Markus Armbruster | 2017-03-16 07:13:02 +0100 |
commit | 2cfbae3c423ecd13a7722ac7a7dca7ec4168e2ff (patch) | |
tree | 14fcbec48e3550368f0251b93aa95a0e62ec6797 /tests/qapi-schema/pragma-name-case-whitelist-crap.json | |
parent | qapi: Have each QAPI schema declare its returns white-list (diff) | |
download | qemu-2cfbae3c423ecd13a7722ac7a7dca7ec4168e2ff.tar.gz qemu-2cfbae3c423ecd13a7722ac7a7dca7ec4168e2ff.tar.xz qemu-2cfbae3c423ecd13a7722ac7a7dca7ec4168e2ff.zip |
qapi: Have each QAPI schema declare its name rule violations
qapi.py has a hardcoded white-list of type names that may violate the
rule on use of upper and lower case. Add a new pragma directive
'name-case-whitelist', and use it to replace the hard-coded
white-list.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1489582656-31133-7-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qapi-schema/pragma-name-case-whitelist-crap.json')
-rw-r--r-- | tests/qapi-schema/pragma-name-case-whitelist-crap.json | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/qapi-schema/pragma-name-case-whitelist-crap.json b/tests/qapi-schema/pragma-name-case-whitelist-crap.json new file mode 100644 index 0000000000..58382bf4e4 --- /dev/null +++ b/tests/qapi-schema/pragma-name-case-whitelist-crap.json @@ -0,0 +1,3 @@ +# 'name-case-whitelist' must be list of strings + +{ 'pragma': { 'name-case-whitelist': null } } |