Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] PDOM Index updates

Comments below.


Doug Schaefer
QNX Software Systems
Eclipse CDT Project Lead


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Janees Elamkulam
Sent: Friday, September 29, 2006 7:51 AM
To: CDT General developers list.
Subject: [cdt-dev] PDOM Index updates



I have some of query regarding PDOM index

1. How often does PDOM updates its index db/ how does the index get updated ?

[Doug>] This is what the indexer does.

2. Does it listen to CElementDelta ?

[Doug>] Yes. Check out the PDOMManager class, elementChanged method. It generally only indexes when ITranslationUnits change.

3. Is there a method/way to update pdom index (not rebuild index) on demand? if so how ?

[Doug>] I guess you could. Make sure you acquire the write lock on the PDOM you are writing to first. Again, check out the implementation of the indexers to see how.

Thanks and Regards,

Back to the top