tags:

views:

666

answers:

2

I am building a Qt based project, and many Qt classes are found in the target documentation.

How can I tell Doxygen to disable documentation generation for some classes? For Q.*?

A: 

If \internal tag does not work, you can try \cond ... \endcond tags for marking a portion of code to be hidden from Doxygen.

EDIT

If you want to exclude specific files, you can use EXCLUDE_PATTERNS variable in Doxyfile configuration file.

mouviciel
no, that is not my problem. My problem is that my functions use QString, and doxygen tries to find documentation about QString. How can I prevent from Doxygen to document classes "I did not explicitly wrote in my project"
elcuco
+1  A: 

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 {
...
}

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::*
Ben Hocking