Doxygen不会处理main.cpp

Ale*_*lex 6 doxygen mainclass doxywizard

所以我是新手使用Doxygen,我能够让它顺利运作.我能够记录我的类和结构,并完美地生成HTML文件.我遇到的问题是它不会解析我的main.cpp文件.所有的类和结构都有自己的.h和.cpp文件,它们处理得很好.如何让Doxygen为main.cpp制作文档?它没有.h文件,因为这是程序开始和结束的地方.我甚至都不知道要把什么放在主文件的.h文件中.我在Windows中使用Doxywizard.

编辑:

我把它放在main中,它会生成一个主页面:

/**
@mainpage

This is a test application.

@author Alex
@date 10/21/2010
@version 1.0
*/
Run Code Online (Sandbox Code Playgroud)

但是在函数原型的文件中,我有这个并且它没有被解析:

/**
@brief Error handler for the PDF writer.

It does nothing. It just has to exist.
*/
void error_handler (HPDF_STATUS   error_no,
                    HPDF_STATUS   detail_no,
                    void         *user_data)
{
}
Run Code Online (Sandbox Code Playgroud)

Ale*_*lex 6

我把它放在main.cpp的顶部,它工作.去搞清楚.

/**
@file main.cpp
*/
Run Code Online (Sandbox Code Playgroud)