What is the syntax of a static function?

I am documenting C code using doxygen, but this function cannot

/** * @fn void myApp_StartReporting( void ) * * @brief bla bla.... * * @see myAccReportPeriod * * @return none */ static void myApp_StartReporting( void ); 

If you remove the static documentation in order.

Many thanks.

+6
source share
1 answer

By default, doxygen skips static functions. Have you set the EXTRACT_STATIC = YES parameter to your Doxyfile?

Also a note of style (which was my first hunch about what happened): If the documentation block is placed just before the object that describes the @fn tag is not needed.

+12
source

Source: https://habr.com/ru/post/902046/


All Articles