Skip to content

Commit

Permalink
Fix doxygenfunction for named function pointers.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobandersen committed Sep 2, 2021
1 parent 2347429 commit b5ab264
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 @@ -140,7 +140,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 b5ab264

Please sign in to comment.