Is it possible to choose which Doxygen warning to show?

后端 未结 3 794
闹比i
闹比i 2021-01-11 17:52

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

3条回答
  •  [愿得一人]
    2021-01-11 18:44

    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  | grep -v "warning: Compound .* is not documented"
    

    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.

提交回复
热议问题