bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unable To find definition


From: Jianbin Kang
Subject: Unable To find definition
Date: Sat, 29 Nov 2008 02:36:59 +0800

Hello,
    gtags unable to generate a  definition for symbol 'BCD' in the
following code:

-----------------------------------------------------------------------------------

/**
  * file: a.c
  **/
#define AAA __attribute__((packed))

void foo(void) AAA;
#define BCD (1)

========================================

It seems that gtags tries to match function 'foo' in K&R style
definition (see function 'function_definition' in gtags-parser/C.c) and
skips all the symbols until it sees character '{'

 Regards
Jianbin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]