How does the Eclipse CDT indexer cooperate with version control?
I use both Git and ClearCase for different projects. I always wonder how the Eclipse CDT indexer cooperates (or not!) with the underlying version control.
For example, when you “git checkout” another branch, or in ClearCase change your config spec, the entire source tree could change underneath you. The index needs to be refreshed or rebuilt.
Are there any tips/tricks people have? E.g. where to store the workspace, which options to check, which commands to run?
One Solution collect form web for “How does the Eclipse CDT indexer cooperate with version control?”
One feature you can use is the Scanner Discovery, also described in the FAQ and integrated in Eclipse Juno:
CDT can parse output of my build and set includes (-I) and macros (-D) per file
That can be useful when sources changes and the build is triggered again.
Besides that, it is mainly
View-->select Index-->rebuild when a ClearCase view or git working tree changes.
view.dat or the
.git repo metadata are ignored.