c - Doxygen: How to redefine void -


i use library redefine void type (among others):

#define xx_void void 

so when run doxygen on code like

/**  * @brief function description  */ xx_void foo(xx_void) {     /*...*/ } 

i warning

file.c:10: warning: return type of member foo not documented 

how can tell doxygen xx_void void there no return value ?

you can try macro_expansion tag:

macro_expansion

if macro_expansion tag set yes, doxygen expand macro names in source code. if set no, conditional compilation performed. macro expansion can done in controlled way setting expand_only_predef yes.

the default value is: no.

this tag requires tag enable_preprocessing set yes.

with macro_expansion set yes result after doxygen preprocessing becomes:

void foo(void) {   /* ... */ } 

Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -