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> |
--000000000000647ce80598229f4b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Hi=EF=BC=8C
Can the global find class member variable definition in cpp file?
Appreciate help.
liang tang <[email protected]> =E4=BA=8E2019=E5=B9=B411=E6=9C=881=
3=E6=97=A5=E5=91=A8=E4=B8=89 =E4=B8=8B=E5=8D=881:45=E5=86=99=E9=81=93=EF=BC=
=9A
> Hello,
> Is there any way to find a class's member variable definition
> position directly?
> Already set *GTAGSFORCECPP=3D* environment variable, and *global -x memb=
er* 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;
>> }
>
>
>
>
--000000000000647ce80598229f4b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi=EF=BC=8C<div>=C2=A0 =C2=A0 =C2=A0 Can the global find c=
lass member variable definition in cpp file?</div><div>Appreciate help.</di=
v></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr=
">liang tang <<a href=3D"mailto:[email protected]">liangtang20=
[email protected]</a>> =E4=BA=8E2019=E5=B9=B411=E6=9C=8813=E6=97=A5=E5=91=
=A8=E4=B8=89 =E4=B8=8B=E5=8D=881:45=E5=86=99=E9=81=93=EF=BC=9A<br></div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-lef=
t:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">Hello,=C2=
=A0<div>=C2=A0 =C2=A0 =C2=A0 Is there any way to find a class's member =
variable definition position directly?=C2=A0</div><div>Already set=C2=A0<b>=
GTAGSFORCECPP=3D</b>=C2=A0 environment variable, and=C2=A0<b>global -x memb=
er</b>=C2=A0cannot find the definition and test code is below.</div><div><b=
>global -s member</b> has result.</div><div>Appreciate your help.</div><div=
><br></div><div><br></div><blockquote class=3D"gmail_quote" style=3D"margin=
:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"=
>#include <iostream><br>class A {<br>public:<br>=C2=A0 =C2=A0 A () {}=
<br>=C2=A0 =C2=A0 ~A () {}<br>private:<br>=C2=A0 =C2=A0 int <b>member</b>;<=
br>};<br>int main()<br>{<br>=C2=A0 =C2=A0 A a;<br>}</blockquote><div><br></=
div><div>=C2=A0</div></div>
</blockquote></div>
--000000000000647ce80598229f4b--