title: How can I automatically generate / update header files from cpp files without using an IDE?
body: <p>I am using VIM for C++ development for quite some years now and I don't want to debate the question whether to use an IDE or powerful text editor for software development. Up to now I've been involved mostly with a header-only template library where everything is either a template or declared inline, thus .cpp files don't play a major role.</p>
  
  <p>Recently I'm more involved in "traditional" C++ development, facing the old issue of header / non-header file synchronization. I'm wondering if there are any command-line tools around that could be used in a make target or be integrated into VIM to handle this job, i.e. update header files based on .cpp files. Basically, declarations of classes / structs or (template and inline) implementations should be ignore int he header files, while function declarations should be added, removed or updated based on the .cpp file.</p>
  
  <p>I'm aware of the <a href="http://www.lazycplusplus.com/">lzz</a> tool, however, that requires you to actually code in an additional, third file format that is then preprocessed to .h / .cpp files before the actual compilation.</p>
  
  <p>Is there anything around that can do the job? How do other non-IDE developers handle this problem?</p>