Re: how to find class member variable definition in cpp using global?

liang tang <[email protected]> Mon, 25 Nov 2019 10:35:18 +0800
Newsgroups gmane.comp.gnu.global.bugs,gmane.comp.gnu.global.general
Message-ID <CAOhZW=4RZmkroh4K3Ejd9s8Hdots=kSBCOwK+gJ0pX-3u8ScNA@mail.gmail.com>
Hi,
      Can the global find class member variable definition in cpp file?
Appreciate help.

liang tang <[email protected]> 于2019年11月13日周三 下午1:45写道:

> Hello,
>       Is there any way to find a class's member variable definition
> position directly?
> Already set *GTAGSFORCECPP=*  environment variable, and *global -x member* cannot
> find the definition and test code is below.
> *global -s member* has result.
> Appreciate your help.
>
>
> #include <iostream>
>> class A {
>> public:
>>     A () {}
>>     ~A () {}
>> private:
>>     int *member*;
>> };
>> int main()
>> {
>>     A a;
>> }
>
>
>
>