Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Prebuilt index for C symbols?
Prebuilt index for C symbols? [message #208419] Wed, 23 January 2008 17:01 Go to next message
Sudhir Rao is currently offline Sudhir RaoFriend
Messages: 7
Registered: July 2009
Junior Member
Hi,

We have a large legacy codebase that we want to use with Eclipse CDT.
Maybe a million lines of code. We expect that the fast indexer will take
quite some time (haven't tried it yet.)

Can we index once and use that index as a starting point for multiple
users? In other words, each person runs their own copy of Eclipse CDT but
starts off with a pre-built index? After that it should be incremental
indexing. Also, the pre-built index may be slightly old compared to the
code in the workspace but we hope that it will still work.

I saw a document with the title, "Pre-built indexes in CDT 4.0". This talks
about PDOM and prebuilt indexes. It is not clear if the index mentioned in
this document is for the Help index or the regular index for a workspace. We
need the workspace index.

Thanks for any suggestions.
Re: Prebuilt index for C symbols? [message #208521 is a reply to message #208419] Thu, 24 January 2008 18:04 Go to previous messageGo to next message
Rustam Abdullaev is currently offline Rustam AbdullaevFriend
Messages: 10
Registered: July 2009
Junior Member
Not sure why you want extra work, GCC sources (4 mil lines) index within 20
seconds...

"Sudhir Rao" <sudrao@gmail.com> wrote in message
news:fn7rsg$f01$1@build.eclipse.org...
> Hi,
>
> We have a large legacy codebase that we want to use with Eclipse CDT.
> Maybe a million lines of code. We expect that the fast indexer will take
> quite some time (haven't tried it yet.)
>
> Can we index once and use that index as a starting point for multiple
> users? In other words, each person runs their own copy of Eclipse CDT but
> starts off with a pre-built index? After that it should be incremental
> indexing. Also, the pre-built index may be slightly old compared to the
> code in the workspace but we hope that it will still work.
>
> I saw a document with the title, "Pre-built indexes in CDT 4.0". This
> talks about PDOM and prebuilt indexes. It is not clear if the index
> mentioned in this document is for the Help index or the regular index for
> a workspace. We need the workspace index.
>
> Thanks for any suggestions.
>
>
Re: Prebuilt index for C symbols? [message #208552 is a reply to message #208419] Fri, 25 January 2008 13:48 Go to previous messageGo to next message
Andrew Ferguson is currently offline Andrew FergusonFriend
Messages: 1
Registered: July 2009
Junior Member
hi Sudhir,

Prebuilt indexes are intended for the use case where a vendor ships some
content (e.g. an SDK) which is immutable and merely referenced by a CDT
project. That is, they are not an end-user feature.

For the use-case where you wish to share an index between team mates, you
can use the Export -> C/C++ -> Team shared index feature.

This will create an index in a specified location relative to your project
that can be shared between team mates.

thanks,
Andrew
Re: Prebuilt index for C symbols? [message #208616 is a reply to message #208552] Fri, 25 January 2008 22:52 Go to previous messageGo to next message
Sudhir Rao is currently offline Sudhir RaoFriend
Messages: 7
Registered: July 2009
Junior Member
Thanks, Andrew. Just what I was looking for. However, I still could not
figure out how to use an already exported index. I don't see Import -> ...
Team Shared Index.

Could you say how a Team shared index can be imported?

=sudhir.

"Andrew Ferguson" <andrew.ferguson@symbian.com> wrote in message
news:31b90ff84f6074b9b8d05b8be47b0ef5$1@www.eclipse.org...
> hi Sudhir,
>
> Prebuilt indexes are intended for the use case where a vendor ships some
> content (e.g. an SDK) which is immutable and merely referenced by a CDT
> project. That is, they are not an end-user feature.
>
> For the use-case where you wish to share an index between team mates, you
> can use the Export -> C/C++ -> Team shared index feature.
>
> This will create an index in a specified location relative to your project
> that can be shared between team mates.
>
> thanks,
> Andrew
>
Re: Prebuilt index for C symbols? [message #1712426 is a reply to message #208616] Sat, 24 October 2015 08:38 Go to previous message
Farshad Tajalli is currently offline Farshad TajalliFriend
Messages: 2
Registered: October 2015
Junior Member
Looks like that CDT is supposed to import the index automatically, when the project is initially imported to a workspace. To do so CDT looks at the default location .settings/cdt-index.zip, or wherever the index is recorded.

In my experience, the index is not imported properly:
https://www.eclipse.org/forums/index.php/m/1712846/#msg_1712846

[Updated on: Wed, 28 October 2015 17:51]

Report message to a moderator

Previous Topic:How commit file .cproject to SVN or git
Next Topic:Using GCC not G++ on Windows
Goto Forum:
  


Current Time: Wed Apr 24 22:31:10 GMT 2024

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

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

Back to the top