function symbol surround by ifndef else endif will not be find by gnu global
"weidong" <[email protected]> Thu, 21 Oct 2021 20:25:51 +0800
| Newsgroups | gmane.comp.gnu.global.bugs |
|---|---|
| Message-ID | <[email protected]> |
the attached file is test.c which expose the bug I can not find the symbol testfun when use the latest version of gnu global6.6.7 ➜ gnu_global ls GPATH GRTAGS GTAGS gtags.files test.c ➜ gnu_global ls -lh 总用量 56K -rw-r--r-- 1 widon widon 16K 10月 21 20:09 GPATH -rw-r--r-- 1 widon widon 16K 10月 21 20:09 GRTAGS -rw-r--r-- 1 widon widon 16K 10月 21 20:09 GTAGS -rw-r--r-- 1 widon widon 7 10月 21 20:09 gtags.files -rw-r--r-- 1 widon widon 145 10月 21 20:09 test.c ➜ gnu_global global testfun ➜ gnu_global global main test.c but ctags can find the symbol, taglist use ctags
[email protected]
(image/jpeg, 46.1 KB) - not displayed
test.c
(application/octet-stream, 145 B)
#include <stdio.h>
int main() {
return 0;
}
#ifndef _SOMETAG
static inline int testfun
#else
static int testfun
#endif
(
)
{
return 0;
}