且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从Doxygen文档中排除某些类

更新时间:2023-09-17 15:02:46

假设您拥有的东西是这样的:(这个问题有点不清楚

Working under the assumption that what you have is something like this: (The question is a little unclear in this regard)

/**
 * Some documentation for class X
 */
class X: public osg::Drawable {
...
}

并且您的问题是您想包含类 X 的文档,而不是类 osg :: Drawable 的文档,正确的方法是使用 EXCLUDE_SYMBOLS 。例如,在上述情况下使用

And your problem is that you want to include documentation for class X, but not for class osg::Drawable, the proper technique is to use EXCLUDE_SYMBOLS. For example, in the case above use

EXCLUDE_SYMBOLS = osg::Drawable

如果您想更加严格一些,可以使用

If you want to be slightly more rigorous, you can use

EXCLUDE_SYMBOLS = osg::Drawable \
                  Drawable

通配符也是允许,因此这也将起作用

Wild-cards are also allowed, so this will also work

EXCLUDE_SYMBOLS = osg::*