Doxygen does not display the Namespaces tab in the document, although it displays YES

I have been using doxygen for a while. I previously created documentation for my source code with namespaces. It worked fine. But now I have created a new project for my new sources, and Doxygen does not place the “Namespaces” tab in the documents, although SHOW_NAMESPACES is “YES”, and there are a lot of namespaces in the source code. The class namespace is displayed if selected, but I do not have a tab.

What could be the problem?

+3
source share
1 answer

You either need to provide the namespaces with some documentation, or set EXTRACT_ALL to YES.

Example:

$ mkdir test-dir
$ cd test-dir
$ echo 'namespace test {}' > test.hpp
$ doxygen -g  # generate default config file
(output)
$ grep -P '^(EXTRACT_ALL|SHOW_NAMESPACES)' Doxyfile  # show default settings
EXTRACT_ALL            = NO
SHOW_NAMESPACES        = YES
$ doxygen     # generate docs
(output)

html/index.html, . , .

$ sed -i '/^EXTRACT_ALL/s/NO/YES/' Doxyfile  # change setting
$ grep -P '^(EXTRACT_ALL|SHOW_NAMESPACES)' Doxyfile  # show change
EXTRACT_ALL            = YES
SHOW_NAMESPACES        = YES
$ doxygen
(output)

html/index.html, .

doxygen 1.6.3.

+6

Source: https://habr.com/ru/post/1760736/


All Articles