Thanks Shigio.

So

global -s

works well and gives me all the symbols, but I get too much output as every
single variable , typename etc all get printed. I wish it were possible to
restrict to symbols that are function/method calls.

(One nice thing about universal ctags is it shows the "kind" of entry a
tags line is (eg, macro, function, etc.) I can then restrict a tag search
to entries of a certain kind, a very useful thing at times .

GHT



On Wed, Feb 24, 2021, 5:33 PM Shigio YAMAGUCHI <[email protected]> wrote:

> Hello,
> How about the following command?
>
> $ global -xrs '.*'
>
> -r, --reference
>         Print  reference tags.  Reference means the reference to a symbol
> which
>         has definitions.
> -s, --symbol
>         Print other symbol tags.  Other symbol means the reference to
> a symbol which
>         has no definition.
>
> Regards,
> Shigio
>
> 2021年2月25日(木) 4:23 Gautam Thaker <[email protected]>:
> >
> >
> > From man page for global:
> >
> > -r, --reference, --rootdir
> >               Print  reference tags.  Reference means the reference to a
> symbol which has definitions.  With the -p option, print the root directory
> of
> >               the project.
> >
> > I have  a use case where I want to know all function/method calls in my
> large source tree. I don't have all functions defined, but I would like to
> still know/find these symbols.
> >
> > Is this possible? I have read that C++ parser seems to be on way to
> deprecation (!!), are there other means possible to seek out even undefined
> references?
> >
> > Thanks.
> >
> >
>
>
> --
> Shigio YAMAGUCHI <[email protected]>
> PGP fingerprint:
> 26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB
>

Reply via email to