tags:

views:

22

answers:

1

I'm just getting started with Doxygen, and have done considerable searching on this, so forgive me if there's an obvious answer.

I'm working on an embedded project where functions can be tagged as debug or nodebug before the return type. In most of our libraries, we use a conditional macro to set libname_debug to either debug or nodebug at the top of the file, and then each function is prefaced with libname_debug.

For documentation purposes, I'd like to have Doxygen leave libname_debug out of the function documentation. It clutters up the function list and makes it harder to see the return types of each function.

Is it possible to tag the file in some way so Doxygen will leave that symbol out? At the moment, I'm wrapping each instance in @cond/@endcond:

/** @cond */ libname_debug /** @endcond */

But that's a pain and adds extra markup to the source.

+1  A: 

You can define macros in the doxygen configuration file. Something like this

PREDEFINED += libname_debug
Jens Gustedt
Thanks, that was the starting point I needed. I had to update the source to not define libname_debug if it was already defined, add it to the PREDEFINED list, and then turn on MACRO_EXPANSION and EXPAND_ONLY_PREDEF. I was hopeful that the pattern `*_debug` in EXCLUDE_SYMBOLS would work, but that wasn't the case.
tomlogic