https://bugs.documentfoundation.org/show_bug.cgi?id=111081

--- Comment #2 from JoNi <j.nitschke+td...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to