I have several configurations for a large project. That means some files and some parts of the files (#ifdef) are not compiled all the time. Also, configurations might not be using same compiler at all. Another detail is, I have an external build system and not using CDT's managed make.
Formerly, I was setting indexer to parse all files and I was adding some include paths and macro defines to project settings manually. Indexer was running slowly and it was not working good enough because of the missing macro defines and include paths. But everything has been changed recently.
What Auto Discovery Brings:
After learning a trick to make auto discovery work for every compiler (printing a fake gcc compile command to console), I can now use auto discovery mechanism for my compilers including msvc. That brought me a lot. Indexer is working much better now. However, this is not enough. I can now use indexer to use active build configuration.
What Active Build Configuration Brings:
I selected to run indexer for active build configuration. And set auto discovery mechanism to "per file". Now, It is now above my expectations. Indexer run faster because it indexes only compiled files. When I click F3, editor opens the right definition of the function (formerly, it was listing all definitions available). Also, it automatically enables or disables #ifdef/#endif parts correctly in the editor when you change active build configuration. That is amazing.
What should I say? Thanks guys. Thanks a lot.
August 22, 2008
Subscribe to:
Post Comments (Atom)
0 comment:
Post a Comment