View Full Version : Code Sense and C++
Aug 25, 2007, 03:41 AM
Does Code Sense work for C++? I'm not getting any completions of symbols or methods. If I'm lucky it will attempt to complete with a symbol it sees elsewhere in the same file. It's an imported project, so it's possible that there's something munged up in structure. I've tried rebuilding the project index, but no joy.
Aug 27, 2007, 01:43 PM
According to Apple's documentation (http://developer.apple.com/documentation/developertools/conceptual/XcodeUserGuide/Contents/Resources/en.lproj/03_05_ed_code_completion/chapter_22_section_1.html), it should. I had it working yesterday with C structs, but I can't remember testing it in C++ before.
You could try adjusting the settings (http://developer.apple.com/documentation/developertools/conceptual/XcodeUserGuide/Contents/Resources/en.lproj/03_05_ed_code_completion/chapter_22_section_3.html#//apple_ref/doc/uid/TP40002681-DontLinkElementID_95) to get it working.
Aug 30, 2007, 09:58 PM
I'm starting to think it's the dependency structure in the project. There's times I have to do a clean and compile when I shouldn't need to, and the #includes aren't where they should be. Assuming Codes Sense uses the project structure to suggest its completions, then this would explain it.