[cfe-dev] A tool for generating reduced headers for test cases (delta debugging)

Eli Friedman eli.friedman at gmail.com
Wed Jul 9 09:16:28 PDT 2008


On Wed, Jul 9, 2008 at 1:49 AM, Nikita Zhuk <nikita at zhuk.fi> wrote:
> Hi,
>
> Several clang analysis test cases written in ObjC contain the
> following comment line in their header: "These declarations were
> reduced using Delta-Debugging from Foundation.h on Mac OS X.". Are
> there some instructions about tools which should be used to generate
> such reduced headers?

If I'm not mistaken, the steps are just to generate a full file with
clang -E, then reduce the file using Delta (http://delta.tigris.org/).
 But Ted should be able to comment with more complete steps.

> Being able to do so would make it possible to
> report bugs by using runnable test cases, and those test cases could
> be eventually included with the clang itself.

Reducing out Foundation.h only really helps for non-runnable
testcases; the presence of Foundation.h is a pretty good indicator of
the presence of the Foundation classes. :)

-Eli



More information about the cfe-dev mailing list