Doxygen XML输出:缺少全局变量
我错过了比赛Doxygen XML输出:缺少全局变量,doxygen,Doxygen,我错过了比赛 <references> 测试1.c #include "test.h" a_S a; void UseA1(void) { a_S *ptrA = &a; /* working, "UseA1" will reference "a" in the doxygen xml output */ } void UseA2(void) { a.b = 0; /* not working, "UseA2" will NOT refe
<references>
测试1.c
#include "test.h"
a_S a;
void UseA1(void)
{
a_S *ptrA = &a; /* working, "UseA1" will reference "a" in the doxygen xml output */
}
void UseA2(void)
{
a.b = 0; /* not working, "UseA2" will NOT reference "a" in the doxygen xml output */
}
但只有在同一源文件中定义了该变量时。如果它是在另一个源文件中定义的,则会引用变量以及typedef成员:
测试数据.c
#include "test.h"
a_S a;
测试2.c
#include "test.h"
void UseA1(void)
{
a_S *ptrA = &a; /* still working */
}
void UseA2(void)
{
a.b = 0; /* working too! */
}
不幸的是,这不是一个选项,因为我们现有的编码标准。。。这有什么办法吗
#include "test.h"
void UseA1(void)
{
a_S *ptrA = &a; /* still working */
}
void UseA2(void)
{
a.b = 0; /* working too! */
}