Doxygen:如何避免在生成的 html 文件中包含 C++ class 源代码?

Doxygen: How to avoid including C++ class source code in the generated html files?

我已经使用 doxygen 向导为我的 C++ 项目创建了 doxygen 项目。我发现我的 header class 源代码包含在 html 文档中。我想避免这种情况。这些文件是 *_8h_source.html 。我可以删除对文件部分的引用,但我也想删除这些文件。 我尝试使用以下选项,但这些文件仍然存在。

EXTRACT_LOCAL_CLASSES=xx
EXTRACT_ALL=xx

Doxygen 版本:1.9.3

头文件的显示是一个复杂的问题,取决于a.o。 SOURCE_BROWSERVERBATIM_HEADERS 的设置。 文档:

SOURCE_BROWSER

If the SOURCE_BROWSER tag is set to YES then a list of source files will be generated. Documented entities will be cross-referenced with these sources. Note: To get rid of all source code in the generated output, make sure that also VERBATIM_HEADERS is set to NO.

The default value is: NO.

VERBATIM_HEADERS

If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a verbatim copy of the header file for each class for which an include is specified. Set to NO to disable this.

See also Section \class.

The default value is: YES.

参见:https://www.doxygen.nl/manual/config.html

SOURCE_BROWSERVERBATIM_HEADERS 都设置为 NO 将产生所需的输出。