Closed GoogleCodeExporter closed 9 years ago
On Mac running IWYU on classB.cpp results in
classA.h:15:9: error: use of undeclared identifier 'Singleton'
It doesn't look like classB.cpp requires singleton.h, so I've looked into why
IWYU suggests to remove singleton.h when running on classA.cpp. Looks like you
are hitting issue #129. Can you try to run IWYU on classA.cpp with
-fno-delayed-template-parsing? I.e. arguments are
F:\tests\templateTest\classA.cpp -IF:/tests/templateTest/ -IF:/external/mssdk/Include/ -DWIN32 -D_DEBUG -D_CONSOLE -fno-delayed-template-parsing -Xiwyu --pch_in_code -Xiwyu --prefix_header_includes=keep
Original comment by vsap...@gmail.com
on 5 Jun 2014 at 8:35
I think this is the same as issue 129.
You could try passing -fno-delayed-template-parsing (Clang flag, so no -Xiwyu)
as a workaround to see if that's actually the problem. Can you confirm if that
helps, and I can merge the issues?
We don't have any ideas for solutions for this yet, but I think we should run
it by the Clang list to see if they have any ideas.
Original comment by kim.gras...@gmail.com
on 5 Jun 2014 at 8:35
Thank you. Yes using that flag on classA.cpp fixes the suggestion of removing
the include on classA.h. Before creating the sample I had a feeling it had to
do with that, but when I tried using that flag in our codebase things weren't
compiling anymore, so I discarded the solution :(
Original comment by dpun...@gmail.com
on 5 Jun 2014 at 8:42
Right, I don't think it's a solution either, it's just good to know it's the
same problem. Merging.
Original comment by kim.gras...@gmail.com
on 5 Jun 2014 at 9:06
Original issue reported on code.google.com by
dpun...@gmail.com
on 5 Jun 2014 at 6:51Attachments: