From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike_D_Davies@fmo.com To: sourcenav@sources.redhat.com Subject: Re: Adding a Parser: SN_LOCAL_VAR_DEF ? Date: Tue, 14 Aug 2001 01:08:00 -0000 Message-id: <85256AA8.002C3928.00@sfldmint11.na.fmo.com> X-SW-Source: 2001-q3/msg00115.html >> 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