0
我想使用@overload特殊命令并且WARN_NO_PARAMDOC Doxyfile参数设置为YES,但是当我尝试时,我会从所有重载函数中得到警告,指出这些参数没有记录。 @overload标签的功能与生成的文档中所宣传的一样,只是带有警告。我误解了@overload命令的意图吗?参数警告和过载
具体来说,就是导致问题的代码段的模样,
class ExampleClass {
public:
/// Test Function
/// @details Details on the test function API
/// @param[out] output Output parameter, by pointer
/// @param[out] optionalOutput
/// Output parameter, by pointer, nullptr if not there
/// @param[in,out] mixed Mixed use parameter, by pointer
/// @param[in] input Input parameter, by reference
/// @param[in] defaultParam Default input parameter
/// @returns Return new value
int testFunction(ExampleClass* output, ExampleClass* optionalOutput,
ExampleClass* mixed,
const ExampleClass& input, int defaultParam=1);
/// @overload
int testFunction(ExampleClass* output,
ExampleClass* mixed,
const ExampleClass& input, int defaultParam=1) {
return testFunction(output, nullptr, mixed, input, defaultParam);
}
};
得到的警告是这样的:
example_class.h:99: warning: parameters of member ExampleClass::testFunction are not (all) documented
example_class.h:99: warning: return type of member ExampleClass::testFunction is not documented
我使用Ubuntu 16.04下
Doxygen的版本1.8.11
我的确是误会。感谢您的澄清 –