View Full Version : Xcode to automatically show errors and warnings like eclipse

Jun 28, 2009, 05:09 AM
Is there any way so that xcode automatically shows errors and warnings whilst writing the code (not only at compile time) just like eclipse does? Im coding in C++ btw. I know java and C++ differ in that C++ is a compiled language, so maybe its not possible...

Jun 28, 2009, 11:50 AM
It won't do it the same way, but you could turn on 'predictive compiling'. It will compile source files in the background as you are working, and errors will get bubbled up. The catch is that I don't know if it will actually give "as you type" error catching.

Jun 28, 2009, 01:49 PM
The big problem with this is that Apple has been using the GCC compiler, and the front-end (the bit that processes the text you type) of GCC is rather heavy and tied to the back-end (the bit that produces processor-specific code). Specifically trying to have the IDE have better access to the front-end is one of the goals of the Clang project (the new front end for the LLVM project). As of 10.5 Clang-LLVM is one of the compiler options (as are GCC-LLVM, and GCC), but not the default one (GCC).

At some point Apple will feel confident enough with Clang to start building XCode around it, and then this sort of thing will be possible. Until then they would have to rebuild the whole GCC preprocessor in order to make it sync up with all of the GCC oddities, in all of the languages, and that is not something Apple has been willing to do (I have seen talks about this).