I've set up CPPCheck (v1.6.1) for a large project containing a bunch of libraries.
When I check a library then I get some check failures which I'm interested in and all is well. However at this point I just have a text file list of all the *.cpp and *.h in that library which I'm passing by '--file-list=...'
Of course, I do get some errors about missing includes, because this library (say MyLibA) includes files from another one of my libraries (MyLibB).
So I now construct a text file that has all the include paths from MyLibB and pass it to cppcheck via '--includes-file=...'.
At this point I get some cpp failures about headers within MyLibB, which is not unexpected, however all the errors that were reported about MyLibA are no longer reported.
Is this a bug or am I doing something wrong?