]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qapi: Use "not COND" instead of "!COND" for generated documentation
authorMarkus Armbruster <armbru@redhat.com>
Tue, 31 Aug 2021 12:38:05 +0000 (14:38 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 3 Sep 2021 15:09:10 +0000 (17:09 +0200)
Generated documentation uses operators "and", "or", and "!".  Change
the latter to "not".

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210831123809.1107782-9-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
scripts/qapi/common.py
tests/qapi-schema/doc-good.txt

index c7ccc7cec778307fea9563d3b3637ce04e63c405..5f8f76e5b25f29da9eed8321db841a7295705875 100644 (file)
@@ -233,7 +233,7 @@ def cgen_ifcond(ifcond: Optional[Union[str, Dict[str, Any]]]) -> str:
 
 def docgen_ifcond(ifcond: Optional[Union[str, Dict[str, Any]]]) -> str:
     # TODO Doc generated for conditions needs polish
-    return gen_ifcond(ifcond, '%s', '!%s', ' and ', ' or ')
+    return gen_ifcond(ifcond, '%s', 'not %s', ' and ', ' or ')
 
 
 def gen_if(cond: str) -> str:
index 75f51a6fc1676f58f141cb297219407133d0af71..0c59d75964bf082c84ef03cbf4c4646d4e875d96 100644 (file)
@@ -174,7 +174,7 @@ Features
 If
 ~~
 
-"!(IFONE or IFTWO)"
+"not (IFONE or IFTWO)"
 
 
 Another subsection