How can one run doxygen in "verification" mode? (parse all documentation, and emit warnings if so configured, but generate no output files).
I tried with the following doxygen configuration file:
DOXYFILE_ENCODING = UTF-8
QUIET = YES
INHERIT_DOCS = YES
EXTRACT_STATIC = YES
EXTRACT_PRIVATE = NO
WARN_NO_PARAMDOC = YES
WARN_IF_UNDOCUMENTED = YES
WARN_IF_DOC_ERROR = YES
WARN_FORMAT = $file($line): $text
GENERATE_HTML = NO
GENERATE_LATEX = NO
INPUT += MySource.cs
Source file:
/// <summary>
/// My namespace documentation
/// </summary>
namespace MyNamespace
{
/// <summary>
/// My class documentation
/// </summary>
public class MyClass
{
/// <summary>
/// My function documentation
/// </summary>
/// <param name="param">The parameter</param>
/// <returns>My return value</returns>
public bool MyFunction(string param)
{
return true;
}
}
}
This generates the following warning:
warning: No output formats selected! Set at least one of the main GENERATE_* options to YES.
which is a bit of a bummer since I want to set WARN_AS_ERROR = YES
. But additionally I get additional errors like:
MyClass.cs(17):warning: parameters of member MyNamespace.MyClass.My
Function are not (all) documented
MyClass.cs(17):warning: return type of member MyNamespace.MyClass.M
yFunction is not documented
If I set GENERATE_HTML = YES
however I have no warnings, so the documentation itself is fine. Am I doing something wrong or is this a bug?