我正在使用一些遗留代码,我正在使用doxygen生成XML文档.我对这种代码有两个问题.首先它包含无效的评论.例如:
///@struct E
enum E
{
E1, E2, E3;
};
Run Code Online (Sandbox Code Playgroud)
这会导致doxygen为具有name的struct生成输出E,该输出不在代码中.我的第二个问题是HTML链接.例如,对于以下输入:
///@brief For info about this struct see: <a href="http://www.foo.com/bar&bar"\>
struct S
{
int i;
}
Run Code Online (Sandbox Code Playgroud)
doxygen生成的输出不是有效的XML,因为&链接中的链接未正确转义.
由于上述原因,我想doxygen忽略一些评论.这可能吗?