9

Just about everything in my documentation ends up with the namespace:: prefix in front of it. (where namespace is the name of my namespace)

Is there a way to have the documentation generated without the namespace part?

For example:

my_namespace::myclass::member

becomes:

myclass::member

It would make everything more readable.

2 Answers 2

6

Turns out the answer was simple: you have to set HIDE_SCOPE_NAMES to YES in the configuration file.

Sign up to request clarification or add additional context in comments.

4 Comments

The only problem with this is that it also causes class scope names to be hidden, not just namespace scope names. In other words my_namespace::myclass::member becomes just member. This may not be a problem, but it can cause ambiguities especially when there are nested classes. For instance superclass::subclass becomes just subclass so there is no longer any indication in the documentation that subclass is nested within superclass.
True, but thankfully neither of those are problems with my project.
Does not work (changes nothing), at least with Python files (Doxygen sees Python modules as namespaces).
… does not work, with functions (forget to give this clarification)
1

I know this is old but if anyone comes looking again.

You can set SHOW_NAMESPACES to NO in configuration file.

It is also in DoxyWizard, Expert tab under Build topic.

1 Comment

This just disables the "Namespaces" page. From the documentation: Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.