是否可以选择显示哪个Doxygen警告? [英] Is it possible to choose which Doxygen warning to show?

查看:71
本文介绍了是否可以选择显示哪个Doxygen警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Doxygen显示一个化合物?未记录。生成时的警告。对于特定项目,我不想记录化合物。为了消除混乱,我想查看除该警告以外的所有其他警告。有没有办法清理Doxygen的输出?

Doxygen shows a Compound ? is not documented. warning when building. For a specific project I don't want to document Compounds. To remove clutter I want to see all other warnings except that one. Is there a way to clean the Doxygen output?

推荐答案

我认为这是不可能的,除非自己写一篇文章-处理器过滤氧气输出。在您的情况下,这应该不太困难,简单的 grep 就足够了:

I don't think this is possible, except by writing your own post-processor to filter doxygen output. In your case, this should not be too hard, a simple grep should be sufficient:

doxygen <config_file> | grep -v "warning: Compound .* is not documented"

我不太确定为什么要使用脱氧剂不提供此功能:可能会需要太多选项,或更复杂的选项。另一种可能性是,他们认为既然您希望在未记录某些内容时得到警告,那么除非在源代码中明确指定(使用 \cond \endcond ),理由是这种遗漏只能根据具体情况决定。也许没有人要求他们提供此功能:随时填写功能请求

I'm not really sure why doxygen does not provide this feature: perhaps it would require too much options, or more complicated options. Another possibility is that they assumed that since you want to be warned when something is not documented, there should be no exceptions except when explicitly specified in the source code (using \cond and \endcond, for example), with the rationale that this kind of omission should only be decided on a case-by-case basis. Or perhaps nobody ever asked them to include this feature: feel free to fill in a feature request.

这篇关于是否可以选择显示哪个Doxygen警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆