My project was created in Xcode 3, I\'m opening it in Xcode 4 and notice the following:
I don't know if it helps someone, but I got the code indexing of my C++ project broken when I switched to Xcode 4. I haven't switched to Lion so I still have the 4.02 version. When creating the project in Xcode I would use the external build option, this didn't add the HEADER_SEARCH_PATHS correctly to the project. I found that using:
cmake -G Xcode .
to generate the xcode project, sets this variable correctly and enables the indexing of the entire project.