gpt4 book ai didi

c++ - Doxygen 是否支持分支或 C/C++ 预处理器

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:19:19 25 4
gpt4 key购买 nike

这听起来像是一个科幻功能请求,但我想知道 Doxygen 是否具有以下两个功能中的任何一个:

  1. 在预处理器运行输入文件后生成调用/调用者图。示例:

    #define MULTITHREADING 1

    然后根据是否启用 MULTITHREADING 启用或禁用代码块。

  2. 用图形箭头描述调用的确定性...例如,如果函数并不总是被调用(也就是它在分支中或者您有可能 return 在函数被调用之前。

最佳答案

  1. 氧气 Preprocessing :

    Source files that are used as input to doxygen can be parsed by doxygen's built-in C-preprocessor.

    By default doxygen does only partial preprocessing. That is, it evaluates conditional compilation statements (like #if) and evaluates macro definitions, but it does not perform macro expansion.

  2. COLLABORATION_GRAPH :

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

关于c++ - Doxygen 是否支持分支或 C/C++ 预处理器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15292641/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com