C, style decl specifiers as intented

This commit is contained in:
Jakob Lykke Andersen committed 2020-03-15 19:54:43 +01:00
1 parent bb2f1baa1b
commit 04efdfa917
2 files changed
+2 -5

No files matched your search

+1 -4
View File
@@ -655,10 +655,7 @@ class ASTDeclSpecsSimple(ASTBase):
def _add(modifiers: List[Node], text: str) -> None:
if len(modifiers) > 0:
modifiers.append(nodes.Text(' '))
# TODO: should probably do
# modifiers.append(addnodes.desc_annotation(text, text))
# but for now emulate the old output:
modifiers.append(nodes.Text(text))
modifiers.append(addnodes.desc_annotation(text, text))
for attr in self.attrs:
if len(modifiers) > 0:
+1 -1
View File
@@ -4,7 +4,7 @@ test-domain-c
directives
----------
.. c:function:: int hello(char *name)
.. c:function:: int hello(const char *name)
:rtype: int