Home » Language IDEs » CDT » C/C++ search limited in 6.0.1
C/C++ search limited in 6.0.1 [message #495302] Wed, 04 November 2009 09:26 Go to next message
Joseph Link  is currently offline Joseph Link
Messages: 2
Registered: November 2009
Junior Member
Hello,

I've just started using Eclipse/CDT this week and have been walking through all of the tutorials and references in the included user guide. I am trying to use the C/C++ search feature as described on the page help/topic/org.eclipse.cdt.doc.user/concepts/cdt_c_search.ht m

The search form seems to only be accepting alphanumeric and wildcard characters so I can't type in queries such as:

*()
*( A * )
f( int * )
f( const char [ ], A & )
operator \*
operator \*=

I am using the C/C++ developer's package as is with the Full Indexer. All other indexer related features appear to be working nicely (Content Assist, Outline, jumping from defintion to reference, etc) and the C/C++ search also works for simple keyword and wildcard searches.

Is tihs a known issue or am I misunderstanding something in the referenced help page?

Thanks,
Joe
Re: C/C++ search limited in 6.0.1 [message #495509 is a reply to message #495302 ] Thu, 05 November 2009 02:42 Go to previous messageGo to next message
Axel Mueller  is currently offline Axel Mueller
Messages: 277
Registered: July 2009
Senior Member
I guess there is a misunderstanding about the usage of C/C++ search. It will only search for variables, functions, classes etc. i.e. C/C++ elements. Thus only alphanumeric and wildcard characters are allowed (e.g. f( int * ) will not work but you can search for a function named f).
From the help page you mentioned:
Quote:
Search string
Specifies a search string.
The search functions support the following wildcards:
Use * to represent any series of characters
Use ? to represent any single character
Use \* to find an asterisk character (*)


But you can always use the File Search. This is a pure textual search that allows regular expressions (in comparison to the C/C++ search that is a semantic search).
Re: C/C++ search limited in 6.0.1 [message #495606 is a reply to message #495302 ] Thu, 05 November 2009 08:59 Go to previous messageGo to next message
Joseph Link  is currently offline Joseph Link
Messages: 2
Registered: November 2009
Junior Member
The examples that I gave in my original post come right out of the documentation at help/topic/org.eclipse.cdt.doc.user/concepts/cdt_c_search.ht m

Specifically, it implies I should be able to search for something like "any function that takes two arguments, the first and int, and the second a double" with a query like:

*(int, double)

I think the help page you're referencing is at:

C++ Development User Guide->
Reference->
C/C++ search page

The one I am looking at which seems to go into much more detail is at:

C++ Development User Guide->
Concepts->
C/C++ search

Joe


[Updated on: Thu, 05 November 2009 09:02]

Re: C/C++ search limited in 6.0.1 [message #495806 is a reply to message #495606 ] Fri, 06 November 2009 03:56 Go to previous message
Axel Mueller  is currently offline Axel Mueller
Messages: 277
Registered: July 2009
Senior Member
Quote:
The one I am looking at which seems to go into much more detail is at:

C++ Development User Guide->
Concepts->
C/C++ search

Ah, I have never seen this page. AFAIK, the info given on this help page seems not to be correct. It is not possible to insert a "(" into the search field. Please file a bugzilla entry.
Previous Topic:Ecllips crash while debugging
Next Topic:CDT 6 and GCC versions
Goto Forum: