are these headers part of the project (so they show up in the project tree) ?? or are they include in project code, but the header is actually not specified in the project itself ??
They are part of the project. Headers that are not listed in the tree would not be saved even in the RC2 version, but now it does not seem to matter if they are in the project or not, they are not saved when the corresponding .cpp file is compiled. They are saved when the full project is build. It's only with compilation of an individual .cpp file that it's a (lesser) problem, but still a bit annoying.
ok, that could be, yesterday O tried it myself and it worked well, but I builded a project. Not just a single .cpp file.
Well, we have different angles of view at this :
1) I have adjusted my file1.h and I want to compile my test2.cpp which does NOT include, (also not through other headers) file1.h -> do I really want to have file1.h saved, maybe it is not even in a state where it would compile cleanly ( this argument can also be applied on project build, so I think it is a weak argument, certainly on project level) ??
When you build a project, it checks all files belonging to the project to see if they need saving
2) I have adjusted file1.h and file1.cpp (which in includes file1.h) is going to be compiled, (this is the case you say it does not save it (I did not check this yet)) -> would be nice to save it, we need to break this up in several sitations :
- both files belong to the project (so the regular project search can be used -> easy)
- the header files does not belong to the project, could check all include paths for modified files, this will sure make everything much slower, don't like it, so no more info on this one ;-)
- the cpp file does not belong to the project (header can or can not belong to it), then there's no project to have it's files checked (could check the local directory where the file resides, but here also, don't like it ...)
So in my personal opinion, the situation where both belong to the project, it might be a good addition to have a 'project'-check for files to save action.
I will try to have a look at this, this weekend.