Skip to content

Commit

Permalink
Fix doxygenfunction for named function pointers.
Browse files Browse the repository at this point in the history
Fixes #722
  • Loading branch information
jakobandersen committed Sep 2, 2021
1 parent c84ac08 commit f3e4633
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion breathe/directives/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ def _parse_args(self, function_description: str) -> Optional[cpp.ASTParametersQu
continue
declarator = p.arg.type.decl
while hasattr(declarator, 'next'):
declarator = declarator.next # type: ignore
if isinstance(declarator, cpp.ASTDeclaratorParen):
assert hasattr(declarator, 'inner')
declarator = declarator.inner # type: ignore
else:
declarator = declarator.next # type: ignore
assert hasattr(declarator, 'declId')
declarator.declId = None # type: ignore
p.arg.init = None # type: ignore
Expand Down

0 comments on commit f3e4633

Please sign in to comment.