[Libreoffice-bugs] [Bug 111081] cyclic includes in UNO headers
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Sep 1 19:54:50 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=111081
--- Comment #2 from JoNi <j.nitschke+tdfbz at ok.de> ---
(In reply to Stephan Bergmann from comment #1)
> But that's a bug in iwyu, no?
>
> We could drop those redundant includes, but then we'd still get cycles when
> e.g. has a method parameter of type XBar derived from XFoo. (And in .hpp
> files, Includes::dump in codemaker/source/cppumaker/includes.cxx always uses
> #include, never a forward decl, for reasons that escape me now. We could
> thus probably get rid of such cycles if we could use forward decls thereM
> but I'd rather prefer to get the issue solved in the tool that chokes?)
yes, it's a problem with iwyu. A relevant bug report seems to be:
https://github.com/include-what-you-use/include-what-you-use/issues/424
There is not much progress on the issue, though.
I trigger this problem only with self includes not by other cycles.
At the moment I compile once, fix the self includes in most common hpp headers
with a script (offapi and udkapi) and compile again. (Then I configure build to
use iwyu, 'touch' the source files I want to target and run make.)
It would already help to know all make targets for UNO api headers.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170901/2c0982a5/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list