[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-core-dev] queries with indexing/parsing with CDT
|
Hi Kashif,
Thanks for coming back on this one, I feel I was not clear on my
previous attempt, so let me try and straighten out some things.
Are you aware of the fact the cdt supports 2 things related to parsing
C/C++ projects:
1>> Indexing
2>> Source code referencing using F3 (Ctrl+ CLick)
I believe, for this there are predominently 2 classes:
IndexManager - indexing
OpenDeclarationsAction - for the F3 action
Our findings: we feel these 2 operations dont appear to be linked to
each other (is this correct) -
Indexing is called whenever the file is created or saved
Parsing - is called whenever the file changes...thats fair...
But that what ever be the state of the indexing (whether turned on or
off) the F3 (code referencing) works...but incorrectly (in either
case).
Incorrectly meaning: It does not support macros and it does not "like"
functions defined across file boundaries. --(thats the real problem)
We are looking to exploit this feature (code referencing) but are at
loss trying to figure out things, we know how the things are more or
less moving eg the .index file being created and the parser coming
into play...blah blah blah.... but this info is not sufficient for us
to move quickly, can someone please provide some pointers to get going
quickly.
thanks,
Dyno
On 5/17/05, Shahzad, Kashif <Kashif_Shahzad@xxxxxxxxxx> wrote:
> Don't know the exact problem and for what purpose u need it. If you are
> a plug-in developer then this code might help you.
>
> IPathEntry entry = CoreModel.newIncludeEntry(...)
>
> CProject.setRawPathEntries((IPathEntry[]) cpath.toArray(new
> IPathEntry[cpath.size()]),
> monitor!= null ? new
> SubProgressMonitor(monitor, 7) : null);
>
> Thanks,
> Kashif
>
> -----Original Message-----
> From: cdt-core-dev-bounces@xxxxxxxxxxx
> [mailto:cdt-core-dev-bounces@xxxxxxxxxxx] On Behalf Of Sandeep Singh
> Sent: Tuesday, May 17, 2005 6:32 PM
> To: cdt-core-dev@xxxxxxxxxxx
> Subject: [cdt-core-dev] queries with indexing/parsing with CDT
>
> Hi all,
> The problem I am facing is that say if I am editing a C source file
> say main.c and this file has a reference to a function or a macro
> defined in a different file but which is included in my main.c (using
> #include ) I do not get the tooltip coming up for these functions nor
> does the Ctrl+Click thing work on these function references.
> I have seen a few prev threads and tried to explicitly include the
> path of the header files in the .cdtproject file, but yet it does not
> help my cause much.
>
> Could anyone guide me with this also can you provide me with the
> information as to where the CDT plugin stores the information related
> to the current index (is it a file r somewhere in teh memory, so that
> I could my self edit this and add my custom info so that I can get
> what I am looking out for).
> Thanks
> Dyno
> _______________________________________________
> cdt-core-dev mailing list
> cdt-core-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-core-dev
>