Skip to content

Commit

Permalink
sphinxrenderer: handle typeless parameters gracefully
Browse files Browse the repository at this point in the history
Closes #402.
  • Loading branch information
vermeeren committed Dec 3, 2018
1 parent f61dc50 commit ffcb088
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions breathe/renderer/sphinxrenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,12 @@ def get_param_decl(param):
def to_string(node):
"""Convert Doxygen node content to a string."""
result = []
for p in node.content_:
value = p.value
if not isinstance(value, six.text_type):
value = value.valueOf_
result.append(value)
if not node is None:
for p in node.content_:
value = p.value
if not isinstance(value, six.text_type):
value = value.valueOf_
result.append(value)
return ' '.join(result)

param_type = to_string(param.type_)
Expand Down

0 comments on commit ffcb088

Please sign in to comment.