Skip to content

Commit

Permalink
Correctly reverse nested namespaces in get_qualification
Browse files Browse the repository at this point in the history
E.g. a function a::b::c::foo() is otherwise incorrectly displayed at c::b::a::foo()
  • Loading branch information
martinus committed Jun 7, 2020
1 parent 330a73a commit 0618acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion breathe/renderer/sphinxrenderer.py
Expand Up @@ -520,7 +520,7 @@ def debug_print_node(n):
# compoundname is 'foo::bar' instead of just 'bar' for namespace 'bar' nested in
# namespace 'foo'. We need full compoundname because node_stack doesn't necessarily
# include parent namespaces and we stop here in case it does.
names.extend(node.compoundname.split('::'))
names.extend(reversed(node.compoundname.split('::')))
break

names.reverse()
Expand Down

0 comments on commit 0618acc

Please sign in to comment.