Re: why are "references" restricted to symbols for which we have definitions?

Shigio YAMAGUCHI <[email protected]> Thu, 25 Feb 2021 07:33:15 +0900
Newsgroups gmane.comp.gnu.global.general
Message-ID <CADJmJYr+G3JwiZP2eCJh5erFj8oTGoOfUsjAH8-U=HOa=vDE=Q@mail.gmail.com>
Hello,
How about the following command?

$ global -xrs '.*'

-r, --reference
        Print  reference tags.  Reference means the reference to a symbol w=
hich
        has definitions.
-s, --symbol
        Print other symbol tags.  Other symbol means the reference to
a symbol which
        has no definition.

Regards,
Shigio

2021=E5=B9=B42=E6=9C=8825=E6=97=A5(=E6=9C=A8) 4:23 Gautam Thaker <ghthaker@=
gmail.com>:
>
>
> 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 l=
arge source tree. I don't have all functions defined, but I would like to s=
till know/find these symbols.
>
> Is this possible? I have read that C++ parser seems to be on way to depre=
cation (!!), are there other means possible to seek out even undefined refe=
rences?
>
> Thanks.
>
>


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