6

我有 C 源代码,其中有很多 #ifdef ANSI 宏。

例如,

#ifdef ANSI
int test
(
int a
)
#else
int test(a)
int a;
#endif

所以如果我使用 cscope+vim 和上面的源代码来导航 test(),它总是显示相同的两个符号。(所以我必须选择两个相同的符号名称之一。这很烦人)

cscope 是否可以仅生成一个符号(仅在 #ifdef ANSI 中生成符号)?

4

0 回答 0