public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
* X-Ref Referres to for constructors
@ 2001-09-17 16:33 Worik
  2001-09-17 16:47 ` Ian Roxborough
  2001-09-17 17:43 ` Ian Roxborough
  0 siblings, 2 replies; 4+ messages in thread
From: Worik @ 2001-09-17 16:33 UTC (permalink / raw)
  To: sourcenav

Friends

When I use the X-Ref for a constructor I get no referres to info.  Ie I
cannot find where the constructor is called.

Is this a limitation in Source Nav or a limitation in me?

Worik

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: X-Ref Referres to for constructors
  2001-09-17 16:33 X-Ref Referres to for constructors Worik
@ 2001-09-17 16:47 ` Ian Roxborough
  2001-09-17 17:43 ` Ian Roxborough
  1 sibling, 0 replies; 4+ messages in thread
From: Ian Roxborough @ 2001-09-17 16:47 UTC (permalink / raw)
  To: Worik; +Cc: sourcenav

Worik wrote:
> 
> Friends
> 
> When I use the X-Ref for a constructor I get no referres to info.  Ie I
> cannot find where the constructor is called.
> 
> Is this a limitation in Source Nav or a limitation in me?

Hmmmm, it works for me, (I see reference information) but then again I might not
understand your problem.

Can assume you are using C++?

Are they many (any) explicit calls being made to the constructor?

Can you provide a short clear example (with code) of the problem?

Source-Navigator doesn't provide references to implied calls to
constructors (i.e. when you create an object you've called the
constructor..).

Ian.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: X-Ref Referres to for constructors
  2001-09-17 16:33 X-Ref Referres to for constructors Worik
  2001-09-17 16:47 ` Ian Roxborough
@ 2001-09-17 17:43 ` Ian Roxborough
  2001-09-18  0:47   ` Riccardo Cohen
  1 sibling, 1 reply; 4+ messages in thread
From: Ian Roxborough @ 2001-09-17 17:43 UTC (permalink / raw)
  To: Worik; +Cc: sourcenav

Worik wrote:
> > Are they many (any) explicit calls being made to the constructor?
> 
> No.  The object in question is created like....
> 
> class foo {
> ...
> };
> 
> int main(){
>  foo f;
>  ...
> }

Ok, you aren't actually calling any constructors here.  You are
creating an object (the constructor is called at run time but
not by you).

If you have had something like:
"foo::foo()"
 or 
"f.foo()" then it should show X-refs to constructors.

You can however perform X-Refs on classes which will show
you all the places that your object might be created (and hence the constructor
called).

Ian.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: X-Ref Referres to for constructors
  2001-09-17 17:43 ` Ian Roxborough
@ 2001-09-18  0:47   ` Riccardo Cohen
  0 siblings, 0 replies; 4+ messages in thread
From: Riccardo Cohen @ 2001-09-18  0:47 UTC (permalink / raw)
  To: sourcenav

This goes with what I asked last week : Is there any way to know where a particular constructor or destructor is called.

I think it is very important to have this information and also implicit calling of parent constructor/destructor. I consider the caller/called tree is not complete without that. But I may understand it is not easy to extract that information from the source code, as I am not a parse expert.

Does anyone know if a tool can do that (free or commercial ?)

Ian Roxborough wrote:
> 
> Worik wrote:
> > > Are they many (any) explicit calls being made to the constructor?
> >
> > No.  The object in question is created like....
> >
> > class foo {
> > ...
> > };
> >
> > int main(){
> >  foo f;
> >  ...
> > }
> 
> Ok, you aren't actually calling any constructors here.  You are
> creating an object (the constructor is called at run time but
> not by you).
> 
> If you have had something like:
> "foo::foo()"
>  or
> "f.foo()" then it should show X-refs to constructors.
> 
> You can however perform X-Refs on classes which will show
> you all the places that your object might be created (and hence the constructor
> called).
> 
> Ian.

-- 
Riccardo Cohen

Articque
Les Roches
37230 Fondettes
France
email = rcohen@dial.oleane.com
web = http://www.articque.com
tel: +33 02 47 49 90 49
fax: +33 02 47 49 91 49

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-09-18  0:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-17 16:33 X-Ref Referres to for constructors Worik
2001-09-17 16:47 ` Ian Roxborough
2001-09-17 17:43 ` Ian Roxborough
2001-09-18  0:47   ` Riccardo Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).