[Libreoffice-bugs] [Bug 111081] New: cyclic includes in UNO headers

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 2 10:36:00 UTC 2017


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

            Bug ID: 111081
           Summary: cyclic includes in UNO headers
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: sdk
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: j.nitschke+tdfbz at ok.de
            Blocks: 42949

For example the file
$workdir/UnoApiHeadersTarget/offapi/normal/com/sun/star/frame/XFrame.hpp
has an
> #include "com/sun/star/frame/XFrame.hpp"

Normally this is no issue because of the #ifndef include guards. But when you
try to analyse the includes with iwyu (Bug 42949) it stops because of the
cyclic include.

> Cycle in include-mapping:
>   "com/sun/star/frame/XFrame.hpp" ->
>   "com/sun/star/frame/XFrame.hpp"
> /build/iwyu-qvr6nD/iwyu-3.9/iwyu_include_picker.cc:844: Assertion failed: Cycle in include-mapping
> Aborted (core dumped)

According to codemaker README, cppumaker generates those .hpp files. Help from
someone with knowledge of cppumaker code is very welcome.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=42949
[Bug 42949] accelerating compile times by removing unnecessary header #include
-- 
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/20170802/08ca2d72/attachment.html>


More information about the Libreoffice-bugs mailing list