I have a C++ project (GNU style, with Makefile) and I would like to use XCode as my IDE as I would like to use the Clang functionality of auto-completion and detecting issues live.
To do so, I created a New Project -> Command Line Tool, and then just imported all my files. If I go ahead and edit a .cpp file, XCode detects live issues (gives me an error if I write bogus code). However, the same does not work for my .h files. Interestingly enough, it seems to work if I #include those header files in one of my .cpp files.
How can I resolve this, without having to include the header files from the source files? Also, I am not sure if this way of creating a project (Command Line Tool) is correct. I really only want to use XCode for auto-completion and issue detection, I do not want to build it through XCode (running "make" is good enough).