Skip to content

Commit

Permalink
Merge branch 'friendclass' of https://github.com/jakobandersen/breathe
Browse files Browse the repository at this point in the history
  • Loading branch information
vermeeren committed Jan 7, 2021
2 parents 215a498 + 41d520e commit 5970160
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion breathe/renderer/sphinxrenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,11 @@ def visit_friendclass(self, node) -> List[Node]:
desc += signode

typ = ''.join(n.astext() for n in self.render(node.get_type())) # type: ignore
assert typ in ("friend class", "friend struct")
# in Doxygen < 1.9 the 'friend' part is there, but afterwards not
# https://github.com/michaeljones/breathe/issues/616
assert typ in ("friend class", "friend struct", "class", "struct")
if not typ.startswith('friend '):
typ = 'friend ' + typ
signode += addnodes.desc_annotation(typ, typ)
signode += nodes.Text(' ')
# expr = cpp.CPPExprRole(asCode=False)
Expand Down

0 comments on commit 5970160

Please sign in to comment.