C, style decl specifiers as intented

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

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:

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