Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nested namespaces wrongly ordered #539

Closed
martinus opened this issue Jun 6, 2020 · 1 comment · Fixed by #540
Closed

nested namespaces wrongly ordered #539

martinus opened this issue Jun 6, 2020 · 1 comment · Fixed by #540
Assignees
Labels
bug Problem in existing code code Source code

Comments

@martinus
Copy link
Contributor

martinus commented Jun 6, 2020

It seems to me that nested namespaces have the wrong order. E.g:

namespace a { namespace b { namespace c {
void foo(int arg);
}}}

Rendering with this in the .rst:

.. doxygenfunction:: a::b::c::foo

Gives this HTML output:

void c::b::a::foo(int arg)
@vermeeren vermeeren added the bug Problem in existing code label Jun 6, 2020
@martinus
Copy link
Contributor Author

martinus commented Jun 6, 2020

It seems to me the issue is because of this line in sphinxrenderer.py:

https://github.com/michaeljones/breathe/blob/330a73a8c5c2e1288d0c4340b2dcd3e57b8724af/breathe/renderer/sphinxrenderer.py#L526

Which was introduced in a2a1085. When I comment this line out, it looks good to me. I have no idea though what why this has been added in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Problem in existing code code Source code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants