Skip to main content



      Home
Home » Newcomers » Newcomers » C++ search for methods
C++ search for methods [message #182232] Wed, 29 November 2006 21:15 Go to next message
Eclipse UserFriend
Originally posted by: pedz.easesoftware.com

I must be doing something terribly wrong.

I took an existing project and moved it into Eclipse running the C++
add on (I think it is call CDT). I downloaded everything maybe a month
ago but never played with it until tonight so I have relatively recent
levels of Eclipse and CDT.

My true objective is to find where the ctor for LockedPort is called.
I searched for LockedPort::LockedPort in all the different ways and
places I can find and it never finds much of anything. I've tried
finding the open method of LockedPort and it can't find it.

It can find the declarations or definitions (I don't know which --
maybe both) but it can not find references.

The project compiles. I've hit "Refresh". I've tried closing the
project and reopening it. Nothing.

Aside from waking up this morning, where did I go wrong?

--
Perry Smith ( pedz@easesoftware.com )
Ease Software, Inc. ( http://www.easesoftware.com )

Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems
Re: C++ search for methods [message #182244 is a reply to message #182232] Wed, 29 November 2006 22:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eric.services.ideoform.org

To do something like that in the JDT (Java Tools) and CDT I do Ctrl +
Shift + T for the Open Type action. Then the Outline View will show you
the constructor (you can customize the order that it shows elements in
that view) or you can press Ctrl + O to see the outline in a tool-tip
like thing (which might be called an "infopop"?).

Open Type can be found in the Navigate menu.

Perry Smith wrote:
> I must be doing something terribly wrong.
>
> I took an existing project and moved it into Eclipse running the C++ add
> on (I think it is call CDT). I downloaded everything maybe a month ago
> but never played with it until tonight so I have relatively recent
> levels of Eclipse and CDT.
>
> My true objective is to find where the ctor for LockedPort is called. I
> searched for LockedPort::LockedPort in all the different ways and places
> I can find and it never finds much of anything. I've tried finding the
> open method of LockedPort and it can't find it.
>
> It can find the declarations or definitions (I don't know which -- maybe
> both) but it can not find references.
>
> The project compiles. I've hit "Refresh". I've tried closing the
> project and reopening it. Nothing.
>
> Aside from waking up this morning, where did I go wrong?
>
Re: C++ search for methods [message #182252 is a reply to message #182244] Thu, 30 November 2006 00:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pedz.easesoftware.com

That is not what I'm looking for. Thanks. Those two things are pretty
cool though.

I want to find all the places where the ctor is used. Or, if the ctor
is a hard example, find all the places where are particular method is
called from. I don't want to search for just "open" because I have
many classes that have an open method. I want to be able to find just
the places where LockedPort::open is called. (But it is not going to
be written in the C++ text as LockedPort::open. Instead, it is going
to be lp.open(); where lp is of type LockedPort.

I have no idea of CDT has that much C++ understanding but I was hoping it did.

On 2006-11-29 21:41:39 -0600, Eric Woodruff <eric.services@ideoform.org> said:

> To do something like that in the JDT (Java Tools) and CDT I do Ctrl +
> Shift + T for the Open Type action. Then the Outline View will show you
> the constructor (you can customize the order that it shows elements in
> that view) or you can press Ctrl + O to see the outline in a tool-tip
> like thing (which might be called an "infopop"?).
>
> Open Type can be found in the Navigate menu.
>
> Perry Smith wrote:
>> I must be doing something terribly wrong.
>>
>> I took an existing project and moved it into Eclipse running the C++ add
>> on (I think it is call CDT). I downloaded everything maybe a month ago
>> but never played with it until tonight so I have relatively recent
>> levels of Eclipse and CDT.
>>
>> My true objective is to find where the ctor for LockedPort is called. I
>> searched for LockedPort::LockedPort in all the different ways and places
>> I can find and it never finds much of anything. I've tried finding the
>> open method of LockedPort and it can't find it.
>>
>> It can find the declarations or definitions (I don't know which -- maybe
>> both) but it can not find references.
>>
>> The project compiles. I've hit "Refresh". I've tried closing the
>> project and reopening it. Nothing.
>>
>> Aside from waking up this morning, where did I go wrong?


--
Perry Smith ( pedz@easesoftware.com )
Ease Software, Inc. ( http://www.easesoftware.com )

Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems
Re: C++ search for methods [message #182261 is a reply to message #182252] Thu, 30 November 2006 00:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eric.services.ideoform.org

Java has the notion of a Call Hierarchy however I'm not sure if the CDT
has this feature.

But a google search seems to suggest it does:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-cor e/org.eclipse.cdt.refactoring/?cvsroot=Tools_Project

(file) plugin.xml 1.8 3 months mschorn Call Hierarchy: Actions
to open the call hierarchy, navigation of nodes

Perry Smith wrote:
> That is not what I'm looking for. Thanks. Those two things are pretty
> cool though.
>
> I want to find all the places where the ctor is used. Or, if the ctor
> is a hard example, find all the places where are particular method is
> called from. I don't want to search for just "open" because I have many
> classes that have an open method. I want to be able to find just the
> places where LockedPort::open is called. (But it is not going to be
> written in the C++ text as LockedPort::open. Instead, it is going to be
> lp.open(); where lp is of type LockedPort.
>
> I have no idea of CDT has that much C++ understanding but I was hoping
> it did.
>
> On 2006-11-29 21:41:39 -0600, Eric Woodruff <eric.services@ideoform.org>
> said:
>
>> To do something like that in the JDT (Java Tools) and CDT I do Ctrl +
>> Shift + T for the Open Type action. Then the Outline View will show you
>> the constructor (you can customize the order that it shows elements in
>> that view) or you can press Ctrl + O to see the outline in a tool-tip
>> like thing (which might be called an "infopop"?).
>>
>> Open Type can be found in the Navigate menu.
>>
>> Perry Smith wrote:
>>> I must be doing something terribly wrong.
>>>
>>> I took an existing project and moved it into Eclipse running the C++ add
>>> on (I think it is call CDT). I downloaded everything maybe a month ago
>>> but never played with it until tonight so I have relatively recent
>>> levels of Eclipse and CDT.
>>>
>>> My true objective is to find where the ctor for LockedPort is called. I
>>> searched for LockedPort::LockedPort in all the different ways and places
>>> I can find and it never finds much of anything. I've tried finding the
>>> open method of LockedPort and it can't find it.
>>>
>>> It can find the declarations or definitions (I don't know which -- maybe
>>> both) but it can not find references.
>>>
>>> The project compiles. I've hit "Refresh". I've tried closing the
>>> project and reopening it. Nothing.
>>>
>>> Aside from waking up this morning, where did I go wrong?
>
>
Re: C++ search for methods [message #182571 is a reply to message #182232] Fri, 01 December 2006 13:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Perry Smith wrote:
> I must be doing something terribly wrong.
>
> I took an existing project and moved it into Eclipse running the C++ add
> on (I think it is call CDT). I downloaded everything maybe a month ago
> but never played with it until tonight so I have relatively recent
> levels of Eclipse and CDT.
>
> My true objective is to find where the ctor for LockedPort is called. I
> searched for LockedPort::LockedPort in all the different ways and places
> I can find and it never finds much of anything. I've tried finding the
> open method of LockedPort and it can't find it.
>
> It can find the declarations or definitions (I don't know which -- maybe
> both) but it can not find references.
>
> The project compiles. I've hit "Refresh". I've tried closing the
> project and reopening it. Nothing.
>
> Aside from waking up this morning, where did I go wrong?
>

I don't use CDT, but in JDT you can right-click on a method name (either
in the code editor or in one of the views that show a structured view of
code) and choose References... from the pop-up menu. That will search in
various scopes for references to that element (method, class, field, etc.)

I would think that CDT works the same or similarly. Have you gone
through the CDT tutorials? They probably demonstrate how to navigate
code easily.

Hope this helps,
Eric
Re: C++ search for methods [message #182661 is a reply to message #182571] Fri, 01 December 2006 17:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pedz.easesoftware.com

On 2006-12-01 12:23:31 -0600, Eric Rizzo <eclipse5@rizzoweb.com> said:

> Perry Smith wrote:
>> I must be doing something terribly wrong.
>>
>> I took an existing project and moved it into Eclipse running the C++
>> add on (I think it is call CDT). I downloaded everything maybe a month
>> ago but never played with it until tonight so I have relatively recent
>> levels of Eclipse and CDT.
>>
>> My true objective is to find where the ctor for LockedPort is called.
>> I searched for LockedPort::LockedPort in all the different ways and
>> places I can find and it never finds much of anything. I've tried
>> finding the open method of LockedPort and it can't find it.
>>
>> It can find the declarations or definitions (I don't know which --
>> maybe both) but it can not find references.
>>
>> The project compiles. I've hit "Refresh". I've tried closing the
>> project and reopening it. Nothing.
>>
>> Aside from waking up this morning, where did I go wrong?
>>
>
> I don't use CDT, but in JDT you can right-click on a method name
> (either in the code editor or in one of the views that show a
> structured view of code) and choose References... from the pop-up menu.
> That will search in various scopes for references to that element
> (method, class, field, etc.)
>
> I would think that CDT works the same or similarly. Have you gone
> through the CDT tutorials? They probably demonstrate how to navigate
> code easily.
>
> Hope this helps,
> Eric

I tried that too but it does not find anything. I'm wondering if I got
the indexer confused somehow.

Thanks,
--
Perry Smith ( pedz@easesoftware.com )
Ease Software, Inc. ( http://www.easesoftware.com )

Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems
Re: C++ search for methods [message #182668 is a reply to message #182261] Fri, 01 December 2006 17:57 Go to previous message
Eclipse UserFriend
Originally posted by: pedz.easesoftware.com

I can't find a similar view in CDT that I can switch to.

On 2006-11-29 23:32:17 -0600, Eric Woodruff <eric.services@ideoform.org> said:

> Java has the notion of a Call Hierarchy however I'm not sure if the CDT
> has this feature.
>
> But a google search seems to suggest it does:
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-cor e/org.eclipse.cdt.refactoring/?cvsroot=Tools_Project

(file)
>
> plugin.xml 1.8 3 months mschorn Call Hierarchy: Actions
> to open the call hierarchy, navigation of nodes
>
> Perry Smith wrote:
>> That is not what I'm looking for. Thanks. Those two things are pretty
>> cool though.
>>
>> I want to find all the places where the ctor is used. Or, if the ctor
>> is a hard example, find all the places where are particular method is
>> called from. I don't want to search for just "open" because I have many
>> classes that have an open method. I want to be able to find just the
>> places where LockedPort::open is called. (But it is not going to be
>> written in the C++ text as LockedPort::open. Instead, it is going to be
>> lp.open(); where lp is of type LockedPort.
>>
>> I have no idea of CDT has that much C++ understanding but I was hoping
>> it did.
>>
>> On 2006-11-29 21:41:39 -0600, Eric Woodruff <eric.services@ideoform.org>
>> said:
>>
>>> To do something like that in the JDT (Java Tools) and CDT I do Ctrl +
>>> Shift + T for the Open Type action. Then the Outline View will show you
>>> the constructor (you can customize the order that it shows elements in
>>> that view) or you can press Ctrl + O to see the outline in a tool-tip
>>> like thing (which might be called an "infopop"?).
>>>
>>> Open Type can be found in the Navigate menu.
>>>
>>> Perry Smith wrote:
>>>> I must be doing something terribly wrong.
>>>>
>>>> I took an existing project and moved it into Eclipse running the C++ add
>>>> on (I think it is call CDT). I downloaded everything maybe a month ago
>>>> but never played with it until tonight so I have relatively recent
>>>> levels of Eclipse and CDT.
>>>>
>>>> My true objective is to find where the ctor for LockedPort is called. I
>>>> searched for LockedPort::LockedPort in all the different ways and places
>>>> I can find and it never finds much of anything. I've tried finding the
>>>> open method of LockedPort and it can't find it.
>>>>
>>>> It can find the declarations or definitions (I don't know which -- maybe
>>>> both) but it can not find references.
>>>>
>>>> The project compiles. I've hit "Refresh". I've tried closing the
>>>> project and reopening it. Nothing.
>>>>
>>>> Aside from waking up this morning, where did I go wrong?


--
Perry Smith ( pedz@easesoftware.com )
Ease Software, Inc. ( http://www.easesoftware.com )

Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems
Previous Topic:no swt-pi-gtk-3235
Next Topic:Short cut key
Goto Forum:
  


Current Time: Sun May 11 14:32:31 EDT 2025

Powered by FUDForum. Page generated in 0.07701 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top