5

Can I show the global namespace in the namespace list of the documentation generated with Doxygen? I have some functions which are extern "C", they appear in the documentation of the header file that declares them, but not in the namespace list and it gives the impression that they are not really there...

1 Answer 1

3

As far as i know, this feature is still missing from Doxygen. One work-around that is not overly verbose is to use @defgroup MyGlobals and put the extern "C" functions in that group:

/*! @ingroup MyGlobals
 * @{ */

// ... functions

/*! @} */

This adds the functions in an entry called MyGlobals on the tab Modules.

This blog entry presents a work-around using xrefs, but i personally find it too verbose.

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

2 Comments

Just to clarify, this will put the functions in an entry called "MyGlobals" on the tab "Modules" (not in "Namespaces").
Indeed, i should have mentioned that - added it.

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.