Does Doxygen support fork or C / C ++ preprocessor

This may sound like a request for a sci-fi function, but I'm wondering if Doxygen has one of the following two functions:

  • The generation of call / caller schedules after the preprocessor ran through the input file. Example:

    #define MULTITHREADING 1 

    and then the code blocks are enabled or disabled, depending on whether MULTITHREADING is MULTITHREADING .

  • Description of confidence in the call using the arrows of the graph ... for example, a dashed line if the function is not always called (it is also in the branch or you have the option of return before calling the function.

+6
source share
2 answers

For the first item, you need to enable the ENABLE_PREPROCESSING parameter in the Doxyfile .

Secondly, I honestly don’t know, but I would be very surprised if this happened. I think this will require a complete C / C ++ compiler.

+5
source
  • Doxygen Preprocessing :

    The source files, which are used as input for doxygen, can be analyzed by the doxygen built-in C-preprocessor.

    By default, doxygen only performs partial preprocessing. That is, it evaluates conditional compilation operators (for example, #if) and evaluates macro definitions, but does not perform macro decomposition.

  • COLLABORATION_GRAPH :

    If the COLLABORATION_GRAPH and HAVE_DOT labels are set to YES, then doxygen will generate a graph for each document class showing the direct and indirect dependencies of the class implementation (inheritance, containment and class variables) with other documented classes.

+5
source

All Articles