This patch enforces that any "Details" sections must appear strictly
after any and all "Intro", "Members", "Features", "Errors" or
"Returns" sections.

The relative positioning of "Since:" is still unenforced: hold your
breath, it's coming in a very large code motion patch.

Signed-off-by: John Snow <[email protected]>
---
 scripts/qapi/parser.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/scripts/qapi/parser.py b/scripts/qapi/parser.py
index 94a60a23482..8b331aa0673 100644
--- a/scripts/qapi/parser.py
+++ b/scripts/qapi/parser.py
@@ -552,8 +552,7 @@ def _tag_check(this: Union['QAPIDoc.Kind', str]) -> None:
                 if isinstance(this, str):
                     this = QAPIDoc.Kind.from_string(this)
 
-                if this in (QAPIDoc.Kind.TODO, QAPIDoc.Kind.SINCE,
-                            QAPIDoc.Kind.DETAILS):
+                if this in (QAPIDoc.Kind.TODO, QAPIDoc.Kind.SINCE):
                     return
 
                 if this.value < last_ordered_section.value:
-- 
2.55.0


Reply via email to