Python 的 Doxygen:如何为嵌套函数生成文档

Doxygen for Python: How to generate documentation for nested functions

我正在使用 Doxygen 记录我的 Python 代码。该代码利用了 Python 定义嵌套函数的能力。

所以我将它们记录为 "normal" 函数并设置 EXTRACT_ALL=YES.

但是,仍然找不到嵌套函数。有没有办法让 Doxygen 做到这一点?

(Doxygen 版本 1.8.6)

无法访问嵌套函数,所以我确定它只是没有记录它

 def wrapper():
    def nested(a,b,c):
        return a+b+c
    return nested(1,2,3)

 #a user can call wrapper()
 print wrapper()
 #but there is no way to call nested
 print nested(7,7,7) #ERROR!!!

既然用户不能调用它,您为什么要记录它?

(真的,这只是一条太长的评论 post 作为评论)