Bug#929492: iwyu: Requests to add forward declaration which is in file

Charlemagne Lasse charlemagnelasse at gmail.com
Fri May 24 17:53:03 BST 2019


Package: iwyu
Version: 7.0-3
Forwarded: https://github.com/include-what-you-use/include-what-you-use/issues/682
Tags: buster sid
X-Debbugs-CC: Kim Grasman <kim.grasman at gmail.com>

Problem can reproduced via (please check the first line):

    struct foobar;

    struct foobar *test(struct foobar *asd)
    {
        return asd;
    }

And then iwyu tells me:

    $ iwyu test.c

    test.c should add these lines:
    struct foobar;

    test.c should remove these lines:

    The full include-list for test.c:
    struct foobar;
    ---

Something which is already there. Now adding the line again:

    struct foobar;
    struct foobar;
    struct foobar *test(struct foobar *asd)
    {
        return asd;
    }

But it tells me now again that I should add this line again:

    $ iwyu test.c

    test.c should add these lines:
    struct foobar;

    test.c should remove these lines:

    The full include-list for test.c:
    struct foobar;
    ---

This currently breaks iwyu for me in Debian Buster



More information about the Pkg-llvm-team mailing list