xref and referred by?
Mo DeJong
mdejong@cygnus.com
Thu Oct 19 22:08:00 GMT 2000
On Thu, 19 Oct 2000 dave.banham@tde.alstom.com wrote:
> My project is 100% (embedded) C code and I still have problems with xref. I hope
> that when the C++ parser is fixed that the C parsing capabilities will be
> improved too.
>
> BTW, I notice that sometimes when I right click on a variable in the editor
> window and select Find Implementation of 'xyz' that nothing happens, but when I
> select Find Declaration of 'xyz' SN puts up a window asking me choose one of two
> files to view. The first file is always a .h file and when selected it shows a
> line with the variable declared extern. Whilst the second file is the .c and
> shows the line where the variable is implemented (or is that declared?) If I
> then click on the variable's declared type (which is a typedef'd type), Find
> Implementation does nothing and Find Declaration switches (correctly) to the
> file containing the typedef statement for the type. If I now repeat this for the
> type name (in the typedef statement), Find Implementation does nothing and Find
> Declaration highlights the type name. Using Xref on the type name, shows that
> xref doesn't know where the type is used either.
>
> Oddly enough, Find Implementation and Find Declaration work fine for function
> names, as does Xref. Is the cross-reference information broken for variables and
> types or was it never intended to cover variables and types? (If so why not?)
>
> Regards
> Dave Banham
If you could create a small test case that reproduces this
error, that would really help. Without a way to reproduce
the error, we are not going to be able to fix it. Oh, and
please don't include things like, "download mozilla and
then do this ...". That does not help, we need a test
case with one or two functions that shows the error.
Mo DeJong
Red Hat Inc
More information about the Sourcenav
mailing list