Re: Why the variable 'int unused1; ' not appear in the output of 'global -c' or 'global -cr'? But in the output of 'global -crs'?

Shigio YAMAGUCHI <[email protected]> Tue, 17 Aug 2021 12:54:00 +0900
Newsgroups gmane.comp.gnu.global.general
Message-ID <CADJmJYoWDqqBmHkOQ=41u8JSxjFE742txYsvYgnkk6Hv8GR9Bg@mail.gmail.com>
Hello,
The current built-in c parser does not recognize variable definitions
as definitions.
That's for the practical reasons:

(1) It is not so easy to pick up variable definitions.
(2) There isn't much useful information in the variable definition location=
.

If you want to change the behavior, you can rewrite the parser.

Regards,
Shigio

On Mon, Aug 16, 2021 at 1:11 PM =E7=BB=BF=E8=A1=A3 <[email protected]> wrote=
:
>
> Hi All,
>
> I have a just one line .cpp, which only contains one line below:
>
> int unused1;
>
> I run 'gtags', and then try 'global -c' to get 'unused1'.
> But it does not appear in neither 'global -c' nor 'global -cr', but only =
in the output of 'global -crs'?
>
> Any suggest will be appreciate.
>
> Regards,
> Gavin Wong



--=20
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB