【发布时间】:2018-10-17 18:13:19
【问题描述】:
我正在使用 Doxygen 记录一个越来越大的 C++ 项目,我一直想知道如何使 Doxygen 成为项目的构建要求。换句话说,如果有任何类/方法/等,我希望我的构建过程失败并停止。 Doxygen 尚未成功记录。我使用make 进行构建。
例如,我希望它失败(即不构建):
/**
* @bbrief Oops, tag does not exist, warning is issued and hence build fails.
*/
void f()
{
// Do something...
}
/**
* @brief Main function for program X
*
* @return End of execution status.
*
* ...
*
*/
int main()
{
f();
return 0;
}
但是这个要构建:
/**
* @brief Okay, this is fine.
*
*/
void f()
{
// Do something...
}
/**
* @brief Main function for program X
*
* @return End of execution status.
*
* ...
*
*/
int main()
{
f();
return 0;
}
我曾尝试在 Internet 上搜索此类功能,但到目前为止一无所获。
【问题讨论】:
-
@battlmonstr 有趣的链接,我一定会激活那些警告。但它们只是警告,它们不会停止构建过程。我已经更新了这个问题以更多地反映这一点。
标签: doxygen