Hi, Your patch picks up many correct definitions which were overlooked. However, it seems that it also has side effects. Isn't it possible to solve the following?
$ cat -n test.cc 1 /* 2 * This code was derived from linux-3.17.4. 3 */ 4 a() { 5 struct menu *menu = NULL; 6 7 connect(configList, SIGNAL(menuSelected(struct menu *)), 8 SLOT(changeMenu(struct menu *))); 9 } [global-6.3.3 + class.txt] $ gtags $ global -f test.cc a 4 test.cc a() { menu 5 test.cc struct menu *menu = NULL; changeMenu 8 test.cc SLOT(changeMenu(struct menu *))); $ _ 'menu' (line 5) and 'changeMenu' (line 8) should be treated as a reference. The following is the result by global-6.3.3. [global-6.3.3] $ gtags $ global -f test.cc a 4 test.cc a() { $ _ Thanks. Shigio 2014-11-27 16:49 GMT+09:00 Jason Hood <jad...@yahoo.com.au>: > On 26/11/2014 10:28, Shigio YAMAGUCHI wrote: > > Hi, > > I have recovered the previous version, because the patch brought > > the following error [struct {};]. > > Fixed; I also allowed for extra newlines. > > C:\test>cat -n test.cpp > 1 class {}; > 2 class Ignore1; > 3 class EXTERN Ignore2; > 4 class C1 {}; > 5 class EXTERN C2 {}; > 6 class > 7 {}; > 8 class > 9 C3 {}; > 10 class > 11 C4 > 12 {}; > 13 class > 14 EXTERNAL > 15 C5 > 16 {}; > > C:\test>gtags > > C:\test>global -x .* > C1 4 test.cpp class C1 {}; > C2 5 test.cpp class EXTERN C2 {}; > C3 9 test.cpp C3 {}; > C4 11 test.cpp C4 > C5 15 test.cpp C5 > > -- > Jason. > > > _______________________________________________ > Bug-global mailing list > Bug-global@gnu.org > https://lists.gnu.org/mailman/listinfo/bug-global > > -- Shigio YAMAGUCHI <shi...@gnu.org> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
test.cc
Description: Binary data
_______________________________________________ Bug-global mailing list Bug-global@gnu.org https://lists.gnu.org/mailman/listinfo/bug-global