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