24.06.2012, 23:53, "John Regehr" <[email protected]>: > Hi Konstantin- > > How about just reducing the non-preprocessed file first, then preprocess > it, then reduce again? > > The first line-delta pass should delete all unnecessary include > directives...
Not that easy - used headers can be included through unused headers, or #include can be replaced with forward declaration [1]. > > Overall we've reduced very few big C++ testcases. My own intuition, at > least, isn't very strong for these. > > Can you give us some ideas about how long C-Reduce is taking for you? For some cases it takes more than 1 day on powerful machine. > If it's really slow this will help motivate me to work on this. Also, > how easy is it for us to build the compiler that you are testing? Unfortunately, this compiler is closed-source so you cannot build it. Will it be enough if I provide you binaries? [1] http://code.google.com/p/include-what-you-use/wiki/WhyIWYU -- Regards, Konstantin
