help-global
[Top][All Lists]
Advanced

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

Re: how to find inheritance class definition in cpp?


From: Shigio YAMAGUCHI
Subject: Re: how to find inheritance class definition in cpp?
Date: Sat, 9 Nov 2019 19:36:49 +0900

If the class definition is contained in a file with extension 'h',
please use GTAGSFORCECPP variable. (man gtags(1) for the details.)

Regards,
Shigio

2019年11月9日(土) 13:46 liang tang <address@hidden>:
command global -x BsSearchEvent does not have any result, but global -s BsSearchEvent has symbol results.

BsSearchEvent has definition as shown in the second picture.

I don't know why global cannot find definition.

Thanks.

 
image.png

image.png

image.png

Shigio YAMAGUCHI <address@hidden> 于2019年11月8日周五 下午10:17写道:
Hello,
I can pickup class A's definition in my environment.

$ ls
test.cpp
$ cat test.cpp
class A : public B
{
}
$ gtags
$ global -x A
A                   1 test.cpp         class A : public B
$ _

What happens in your environment?

Regards,
Shigio

2019年11月8日(金) 21:03 liang tang <address@hidden>:
>
> Hello,
>
> How to find inheritance class's definition using gtags?
>
> code is as follows:
> class A : public B
> {
> }
>
> now I cannot find defination of A using gtags.
> What can I do to find defination of A?
>
> Thanks.
>


--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB


--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: 
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB

reply via email to

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