Ignore some comments

I am working with some legacy code for which I am creating XML documentation using doxygen. I have two problems with this code. First it contains invalid comments. For instance:

///@struct E  
enum E  
{
 E1, E2, E3;  
};

This causes doxygen to generate output for a struct with a name Ethat is not in the code. My second problem is with HTML links. For example, for the following input:

///@brief For info about this struct see: <a href="http://www.foo.com/bar&bar"\>  
struct S
{
  int i;
}

the output generated by doxygen is not valid XML because the &link is not properly escaped.

For the above reasons, I would like doxygen to ignore some comments. Is it possible?

+3
source share
2 answers

, doxygen , INPUT_FILTER, (, ) doxygen.

+5

, html doxygen :

///@brief some comment here <--! ignored here --> also continues over.

, \& ? , .

+1

All Articles