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

            Bug ID: 119699
           Summary: Wrong include directory for
                    chart2/source/view/{axes,charttypes}
           Product: LibreOffice
           Version: 6.2.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Chart
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: kelem...@ubuntu.com
                CC: vmik...@collabora.co.uk

While working on https://gerrit.libreoffice.org/#/c/59956/ I noticed that IWYU
gives wrong results and errors about files not found: 

$ include-what-you-use -Wall -DBOOST_ERROR_CODE_HEADER_ONLY
-DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DOSL_DEBUG_LEVEL=1
-DSAL_LOG_INFO -DSAL_LOG_WARN -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT
-DLIBO_INTERNAL_ONLY -I/home/gabor/src/core/external/boost/include
-I/home/gabor/src/core/workdir/UnpackedTarball/boost
-I/home/gabor/src/core/include -I/usr/lib/jvm/java-11-openjdk-amd64/include
-I/usr/lib/jvm/java-11-openjdk-amd64/include/linux
-I/home/gabor/src/core/config_host
-I/home/gabor/src/core/chart2/source/controller/inc
-I/home/gabor/src/core/chart2/source/inc -I/home/gabor/src/core/chart2/inc
-I/home/gabor/src/core/workdir/UnoApiHeadersTarget/udkapi/normal
-I/home/gabor/src/core/workdir/UnoApiHeadersTarget/offapi/normal
-finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe
-fvisibility-inlines-hidden -fPIC -std=gnu++1y -c -x c++
/home/gabor/src/core/chart2/source/view/axes/Tickmarks.hxx
In file included from
/home/gabor/src/core/chart2/source/view/axes/Tickmarks.hxx:22:
/home/gabor/src/core/chart2/source/view/axes/TickmarkProperties.hxx:23:10:
fatal error: 'VLineProperties.hxx' file not found
#include <VLineProperties.hxx>
         ^~~~~~~~~~~~~~~~~~~~~

$ include-what-you-use -Wall -DBOOST_ERROR_CODE_HEADER_ONLY
-DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DOSL_DEBUG_LEVEL=1
-DSAL_LOG_INFO -DSAL_LOG_WARN -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT
-DLIBO_INTERNAL_ONLY -I/home/gabor/src/core/external/boost/include
-I/home/gabor/src/core/workdir/UnpackedTarball/boost
-I/home/gabor/src/core/include -I/usr/lib/jvm/java-11-openjdk-amd64/include
-I/usr/lib/jvm/java-11-openjdk-amd64/include/linux
-I/home/gabor/src/core/config_host
-I/home/gabor/src/core/chart2/source/controller/inc
-I/home/gabor/src/core/chart2/source/inc -I/home/gabor/src/core/chart2/inc
-I/home/gabor/src/core/workdir/UnoApiHeadersTarget/udkapi/normal
-I/home/gabor/src/core/workdir/UnoApiHeadersTarget/offapi/normal
-finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe
-fvisibility-inlines-hidden -fPIC -std=gnu++1y -c -x c++
/home/gabor/src/core/chart2/source/view/charttypes/BarChart.hxx
/home/gabor/src/core/chart2/source/view/charttypes/BarChart.hxx:24:10: fatal
error: 'VSeriesPlotter.hxx' file not found
#include <VSeriesPlotter.hxx>
         ^~~~~~~~~~~~~~~~~~~~
The problem affects only these two directories, and not
chart2/source/view/main.

Here the problem is this include directory specification: 
-I/home/gabor/src/core/chart2/source/controller/inc

The correct one would be: 
-I/home/gabor/src/core/chart2/source/view/inc

Since this contains the "not found" files. Manually editing the above command
lines makes IWYU find all files and work as usual.

-- 
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