我们目前正在评论Doxygen兼容性,但已经偶然发现了默认参数的问题。Doxygen 1.8.13忽略带默认值的参数(C++)
一个例子是这样的功能:
...
class String : public Object
{
...
/*!
* \brief Trim the string from the left while the characters matches any characters in the given string
* \param In_pChar - (optional) The array of characters to be trimmed
* \return The trimmed string object
*/
String& trim_left(const char * In_pChar=" \t");
...
};
...
Doxygen的只是完全省略该参数,甚至警告一下:
warning: argument 'In_pChar' of command @param is not found in the argument list of String::trim_left()
有没有人有关于如何解决这个问题的想法?
已经有[Doxygen的许多版本(http://www.stack.nl/~dimitri /doxygen/manual/changelog.html)。你问哪一个? –
@LightnessRacesinOrbit Doxygen 1.8.13。我相应地更新了这个问题。 –