Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Defines while indexing
Defines while indexing [message #158789] Wed, 23 November 2005 06:09 Go to next message
Eclipse UserFriend
Originally posted by: divis1969.mail.ru

Hi,

I'm wondering is it possible to force the indexer to parse ALL the code,
independently of the DEFINEs.
Sometimes I need to find all the declarations/definitions of some entity.
This especially helpful while you learning new code.

Also, this approach (to not parse some code) impact the outline view and it
is annoying if you you are unable to locate the function in outline view:
you know that is should be there, but you need to use search or scroll down
the source file... :-)

BTW, the project I'm working on has about 9000 files and I'm using ctags
instead of full indexer. Nevertheless, I suppose it is applicable to full
indexer too.

Dmitry
Re: Defines while indexing [message #158797 is a reply to message #158789] Wed, 23 November 2005 07:35 Go to previous messageGo to next message
Kurt Dirix is currently offline Kurt DirixFriend
Messages: 18
Registered: July 2009
Junior Member
You could use e.g. Perl to strip off all #define directives of each file,
then use this to feed to ctags.

But if you want to find all the declarations/definitions of some entity,
you can perhaps better issue a search for it (the good old way)?
Re: Defines while indexing [message #158804 is a reply to message #158797] Wed, 23 November 2005 11:31 Go to previous message
Eclipse UserFriend
Originally posted by: divis1969.mail.ru

9000 files?
What about #ifdef #else #endif ?

I would prefer to use modern tools and features.
Otherwise, I would still use some simple editor and file manager... :-)

The next point which is related to indexer is how it processes the sources.
When you create the standard make project it tries to index all the sources
in all sub-directories. You don't have to specify exact set of the
files/directories to index. But why it cannot treate these directories as a
include directories also! Why not? Why I should specify them manually? It is
OK if there are couple directories, but what if there are couple dozens?

Dmitry


"Dries" <kd_jm@hotmail.com> wrote in message
news:95eb60907c44fea148c5d16c56dc9649$1@www.eclipse.org...
> You could use e.g. Perl to strip off all #define directives of each file,
> then use this to feed to ctags.
> But if you want to find all the declarations/definitions of some entity,
> you can perhaps better issue a search for it (the good old way)?
>
>
Previous Topic:Linker can not find libraries
Next Topic:CDT 3.0.1 Managed Make and GNU/MinGW Make
Goto Forum:
  


Current Time: Fri Dec 27 07:53:58 GMT 2024

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

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

Back to the top