How can I make doxygen ignore some code fragment?

The new and easiest way is to add one comment block with a @cond command at the start and one comment block with a @endcond command at the end of the piece of code that should be ignored. This should be within the same file of course.

But you can also use DOXYGEN macro for this: If you put

#ifndef DOXYGEN
 /* code that must be skipped by Doxygen */
#endif /* DOXYGEN */

around a block, it will be skipped by Doxygen.

-- GerardZins - 14 Oct 2006

Topic revision: r1 - 2006-10-14 - GerardZins
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback