Adding a Parser: SN_LOCAL_VAR_DEF ?

Mike_D_Davies@fmo.com Mike_D_Davies@fmo.com
Tue Aug 14 01:08:00 GMT 2001


>> Local C/C++ variables don't work for me despite having the
>>"generate
>> references to local variables" checkbox checked.
>>
>> I think there may be a problem still lingering in there somewhere,
>> but I got no response when I posted earlier.
>
>I hunted out your earlier post and ran your example code
>snippet.  I did an Xref of the "main" function and could
>see "y" and "retval" as local variable.  This was under
>a Linux system not Windows.
>
>Source-Navigator doesn't (seem) handle local variables like global
>variables (WRT the GUI).  It filters them out most of the time and
>I only see them in "show references" branches of an xref.

OK,  I also see them now, but as you say only in the show references branch of
an xref.  Thanks for pointing that out.

I didn't expect this to be the result of the "generate references to local
variables" switch,  is there any way of forcing local variables to be treated
the same way as globals ?  Or is there some problem relating to multiple local
variables from different function scopes havint the same name ?

>There is a chance of some weird stuff going on under Windows
>WRT to local variables.

Aparently not :-)

Thanks again,

Mike





More information about the Sourcenav mailing list