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&nbsp; the bug


I can not find the symbol testfun when use the latest version of gnu global6.6.7


➜&nbsp; gnu_global ls 
GPATH&nbsp; GRTAGS&nbsp; GTAGS&nbsp; gtags.files&nbsp; test.c
➜&nbsp; 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 &nbsp; 7 10月 21 20:09 gtags.files
-rw-r--r-- 1 widon widon 145 10月 21 20:09 test.c
➜&nbsp; gnu_global global testfun
➜&nbsp; 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;
}