From 52ef78f4923283e6e52d575bec81985b031cb30b Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Thu, 31 Mar 2022 23:57:29 +0200 Subject: [PATCH] Recheck modules t* with IWYU See tdf#42949 for motivation Change-Id: I109fa07d52721fd10354de07a2ed995ffa2f27c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132369 Tested-by: Jenkins Reviewed-by: Thorsten Behrens --- test/qa/cppunit/test_xpath.cxx | 5 ++++- test/source/diff/diff.cxx | 3 +-- testtools/IwyuFilter_testtools.yaml | 17 +++++++++++++++++ testtools/source/bridgetest/bridgetest.cxx | 3 --- testtools/source/bridgetest/constructors.cxx | 3 --- testtools/source/bridgetest/cppobj.cxx | 2 -- .../source/bridgetest/currentcontextchecker.cxx | 2 -- .../source/bridgetest/currentcontextchecker.hxx | 1 - testtools/source/bridgetest/multi.cxx | 1 - testtools/source/bridgetest/multi.hxx | 1 - toolkit/IwyuFilter_toolkit.yaml | 14 +++++++++++++- toolkit/inc/awt/animatedimagespeer.hxx | 2 -- toolkit/inc/awt/vclxbitmap.hxx | 1 - toolkit/inc/awt/vclxgraphics.hxx | 2 -- toolkit/inc/awt/vclxregion.hxx | 1 - toolkit/inc/awt/vclxwindows.hxx | 1 - .../inc/controls/accessiblecontrolcontext.hxx | 2 +- toolkit/inc/controls/animatedimages.hxx | 1 - .../inc/controls/controlmodelcontainerbase.hxx | 1 - toolkit/inc/helper/msgbox.hxx | 1 + toolkit/inc/helper/servicenames.hxx | 2 -- toolkit/inc/helper/unopropertyarrayhelper.hxx | 1 - toolkit/qa/cppunit/EventContainer.cxx | 2 +- toolkit/source/awt/animatedimagespeer.cxx | 1 - toolkit/source/awt/stylesettings.hxx | 2 -- toolkit/source/awt/vclxbitmap.cxx | 2 -- toolkit/source/awt/vclxdevice.cxx | 4 ---- toolkit/source/awt/vclxfont.cxx | 2 -- toolkit/source/awt/vclxgraphics.cxx | 2 -- toolkit/source/awt/vclxmenu.cxx | 2 -- toolkit/source/awt/vclxprinter.cxx | 2 -- toolkit/source/awt/vclxregion.cxx | 2 -- toolkit/source/awt/vclxwindows.cxx | 3 --- toolkit/source/controls/dialogcontrol.cxx | 1 - toolkit/source/controls/filectrl.cxx | 1 - toolkit/source/controls/formattedcontrol.cxx | 1 - .../controls/grid/defaultgridcolumnmodel.cxx | 1 - toolkit/source/controls/roadmapcontrol.cxx | 1 - toolkit/source/controls/stdtabcontroller.cxx | 1 - .../source/controls/stdtabcontrollermodel.cxx | 1 - toolkit/source/controls/tkscrollbar.cxx | 2 -- .../controls/unocontrolcontainermodel.cxx | 1 - toolkit/source/controls/unocontrols.cxx | 2 -- toolkit/source/hatchwindow/documentcloser.cxx | 1 - .../source/hatchwindow/hatchwindowfactory.cxx | 1 - toolkit/source/helper/formpdfexport.cxx | 1 - toolkit/source/helper/servicenames.cxx | 1 - toolkit/source/helper/unowrapper.cxx | 2 -- tools/IwyuFilter_tools.yaml | 14 +++++++++++--- tools/qa/cppunit/test_100mm2twips.cxx | 1 - .../cppunit/test_cpu_runtime_detection_AVX2.cxx | 3 --- .../cppunit/test_cpu_runtime_detection_SSE2.cxx | 4 ---- .../test_cpu_runtime_detection_SSE2_check.cxx | 1 - .../test_cpu_runtime_detection_SSSE3.cxx | 4 ---- .../test_cpu_runtime_detection_SSSE3_check.cxx | 1 - tools/qa/cppunit/test_cpuid.cxx | 1 - tools/qa/cppunit/test_json_writer.cxx | 3 --- tools/qa/cppunit/test_xmlwriter.cxx | 1 - tools/source/debug/debug.cxx | 3 --- tools/source/generic/fract.cxx | 1 - tools/source/generic/gen.cxx | 6 ++---- tools/source/generic/point.cxx | 1 - tools/source/generic/poly.cxx | 2 -- tools/source/inet/inetstrm.cxx | 1 - tools/source/misc/json_writer.cxx | 1 - 65 files changed, 51 insertions(+), 106 deletions(-) create mode 100644 testtools/IwyuFilter_testtools.yaml diff --git a/test/qa/cppunit/test_xpath.cxx b/test/qa/cppunit/test_xpath.cxx index 87d6a7ac177e..c622e59617ec 100644 --- a/test/qa/cppunit/test_xpath.cxx +++ b/test/qa/cppunit/test_xpath.cxx @@ -9,7 +9,10 @@ #include #include -#include + +#include +#include +#include class TestXPath : public CppUnit::TestFixture, public XmlTestTools { diff --git a/test/source/diff/diff.cxx b/test/source/diff/diff.cxx index e0ba939d4964..097452665308 100644 --- a/test/source/diff/diff.cxx +++ b/test/source/diff/diff.cxx @@ -17,14 +17,13 @@ #include #include #include +#include #include #if USE_CPPUNIT #include #endif -#include - namespace { struct tolerance diff --git a/testtools/IwyuFilter_testtools.yaml b/testtools/IwyuFilter_testtools.yaml new file mode 100644 index 000000000000..801c15cfe4cb --- /dev/null +++ b/testtools/IwyuFilter_testtools.yaml @@ -0,0 +1,17 @@ +--- +assumeFilename: testtools/source/bridgetest/cppobj.cxx +excludelist: + testtools/source/bridgetest/currentcontextchecker.hxx: + # Actually used + - test/testtools/bridgetest/XCurrentContextChecker.hpp + testtools/source/bridgetest/bridgetest.cxx: + # Needed for fw decl + - com/sun/star/lang/XSingleComponentFactory.hpp + # Actually used + - test/testtools/bridgetest/BadConstructorArguments.hpp + testtools/source/bridgetest/cppobj.cxx: + # Actually used + - test/testtools/bridgetest/XMulti.hpp + testtools/source/bridgetest/constructors.cxx: + # Actually used + - test/testtools/bridgetest/TestEnum.hpp diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx index a685721d77bd..2a5ac183ef66 100644 --- a/testtools/source/bridgetest/bridgetest.cxx +++ b/testtools/source/bridgetest/bridgetest.cxx @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -40,7 +39,6 @@ #include #include -#include #include #include #include @@ -52,7 +50,6 @@ #include #include #include -#include #include "currentcontextchecker.hxx" #include "multi.hxx" diff --git a/testtools/source/bridgetest/constructors.cxx b/testtools/source/bridgetest/constructors.cxx index f1894155444d..04b953fff0e2 100644 --- a/testtools/source/bridgetest/constructors.cxx +++ b/testtools/source/bridgetest/constructors.cxx @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -34,8 +33,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/testtools/source/bridgetest/cppobj.cxx b/testtools/source/bridgetest/cppobj.cxx index 9d5b469d48c7..7529144beb55 100644 --- a/testtools/source/bridgetest/cppobj.cxx +++ b/testtools/source/bridgetest/cppobj.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include #include #include @@ -25,7 +24,6 @@ #include #include #include -#include #include #include diff --git a/testtools/source/bridgetest/currentcontextchecker.cxx b/testtools/source/bridgetest/currentcontextchecker.cxx index 96d2b05f0084..c00e8b76ee84 100644 --- a/testtools/source/bridgetest/currentcontextchecker.cxx +++ b/testtools/source/bridgetest/currentcontextchecker.cxx @@ -24,13 +24,11 @@ #include #include -#include #include #include #include #include #include -#include #include #include #include diff --git a/testtools/source/bridgetest/currentcontextchecker.hxx b/testtools/source/bridgetest/currentcontextchecker.hxx index 36ad5d6d0d56..df4bea64e83b 100644 --- a/testtools/source/bridgetest/currentcontextchecker.hxx +++ b/testtools/source/bridgetest/currentcontextchecker.hxx @@ -22,7 +22,6 @@ #include #include -#include #include #include #include diff --git a/testtools/source/bridgetest/multi.cxx b/testtools/source/bridgetest/multi.cxx index 4b98f92cdf22..1bfbfb4154f7 100644 --- a/testtools/source/bridgetest/multi.cxx +++ b/testtools/source/bridgetest/multi.cxx @@ -22,7 +22,6 @@ #include "multi.hxx" -#include #include #include diff --git a/testtools/source/bridgetest/multi.hxx b/testtools/source/bridgetest/multi.hxx index f8b6d404b4a7..c4171e8ee5d3 100644 --- a/testtools/source/bridgetest/multi.hxx +++ b/testtools/source/bridgetest/multi.hxx @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/toolkit/IwyuFilter_toolkit.yaml b/toolkit/IwyuFilter_toolkit.yaml index 386154c6c90e..6606014d2958 100644 --- a/toolkit/IwyuFilter_toolkit.yaml +++ b/toolkit/IwyuFilter_toolkit.yaml @@ -64,7 +64,7 @@ excludelist: - com/sun/star/script/XScriptEventsSupplier.hpp - com/sun/star/util/XCloneable.hpp # Needed for template classes - - toolkit/controls/geometrycontrolmodel_impl.hxx + - controls/geometrycontrolmodel_impl.hxx toolkit/inc/controls/roadmapcontrol.hxx: # base class has to be a complete type - com/sun/star/awt/XItemEventBroadcaster.hpp @@ -89,3 +89,15 @@ excludelist: - com/sun/star/container/XContainer.hpp - com/sun/star/container/XIdentifierContainer.hpp - toolkit/controls/unocontrolbase.hxx + toolkit/source/controls/animatedimages.cxx: + # Actually used + - com/sun/star/beans/XPropertySetInfo.hpp + toolkit/source/awt/vclxwindow.cxx: + # Needed for rtl::math::round + - rtl/math.hxx + toolkit/source/hatchwindow/hatchwindow.cxx: + # Actually used + - com/sun/star/embed/XHatchWindowController.hpp + toolkit/source/helper/servicenames.cxx: + # Needed for extern + - helper/servicenames.hxx diff --git a/toolkit/inc/awt/animatedimagespeer.hxx b/toolkit/inc/awt/animatedimagespeer.hxx index 71861f8b3e38..839e249b3ff8 100644 --- a/toolkit/inc/awt/animatedimagespeer.hxx +++ b/toolkit/inc/awt/animatedimagespeer.hxx @@ -29,8 +29,6 @@ #include -#include - namespace toolkit { diff --git a/toolkit/inc/awt/vclxbitmap.hxx b/toolkit/inc/awt/vclxbitmap.hxx index 97475d7000c8..6cf8928e06c4 100644 --- a/toolkit/inc/awt/vclxbitmap.hxx +++ b/toolkit/inc/awt/vclxbitmap.hxx @@ -21,7 +21,6 @@ #include #include -#include #include #include #include diff --git a/toolkit/inc/awt/vclxgraphics.hxx b/toolkit/inc/awt/vclxgraphics.hxx index 68902084ff24..ff697ead31b4 100644 --- a/toolkit/inc/awt/vclxgraphics.hxx +++ b/toolkit/inc/awt/vclxgraphics.hxx @@ -25,11 +25,9 @@ #include #include #include -#include #include #include -#include #include #include diff --git a/toolkit/inc/awt/vclxregion.hxx b/toolkit/inc/awt/vclxregion.hxx index 4ba3211cc2c7..70b79990c0b3 100644 --- a/toolkit/inc/awt/vclxregion.hxx +++ b/toolkit/inc/awt/vclxregion.hxx @@ -21,7 +21,6 @@ #include -#include #include #include #include diff --git a/toolkit/inc/awt/vclxwindows.hxx b/toolkit/inc/awt/vclxwindows.hxx index c5f157aef9f8..21950271e95e 100644 --- a/toolkit/inc/awt/vclxwindows.hxx +++ b/toolkit/inc/awt/vclxwindows.hxx @@ -33,7 +33,6 @@ #include #include -#include #include #include diff --git a/toolkit/inc/controls/accessiblecontrolcontext.hxx b/toolkit/inc/controls/accessiblecontrolcontext.hxx index ea4f959b853e..d5233cc54d52 100644 --- a/toolkit/inc/controls/accessiblecontrolcontext.hxx +++ b/toolkit/inc/controls/accessiblecontrolcontext.hxx @@ -23,7 +23,7 @@ #include #include #include -#include +#include namespace vcl { class Window; } namespace com::sun::star::awt { class XWindow; } diff --git a/toolkit/inc/controls/animatedimages.hxx b/toolkit/inc/controls/animatedimages.hxx index 0afd921f478a..a341447c5366 100644 --- a/toolkit/inc/controls/animatedimages.hxx +++ b/toolkit/inc/controls/animatedimages.hxx @@ -22,7 +22,6 @@ #include #include #include -#include namespace com::sun::star::container { class XContainerListener; } namespace com::sun::star::uno { class XComponentContext; } diff --git a/toolkit/inc/controls/controlmodelcontainerbase.hxx b/toolkit/inc/controls/controlmodelcontainerbase.hxx index 768474ffd116..1bbc3f301b16 100644 --- a/toolkit/inc/controls/controlmodelcontainerbase.hxx +++ b/toolkit/inc/controls/controlmodelcontainerbase.hxx @@ -34,7 +34,6 @@ #include #include #include -#include #include #include #include diff --git a/toolkit/inc/helper/msgbox.hxx b/toolkit/inc/helper/msgbox.hxx index 097aa37bc04e..cef129cf4517 100644 --- a/toolkit/inc/helper/msgbox.hxx +++ b/toolkit/inc/helper/msgbox.hxx @@ -20,6 +20,7 @@ #include #include #include +#include // Window-Bits for MessageBoxen enum class MessBoxStyle diff --git a/toolkit/inc/helper/servicenames.hxx b/toolkit/inc/helper/servicenames.hxx index cd888c94d2eb..7fb7ab2a573c 100644 --- a/toolkit/inc/helper/servicenames.hxx +++ b/toolkit/inc/helper/servicenames.hxx @@ -19,8 +19,6 @@ #pragma once -#include - extern const char szServiceName_UnoControlDialog[]; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/toolkit/inc/helper/unopropertyarrayhelper.hxx b/toolkit/inc/helper/unopropertyarrayhelper.hxx index 29c87099a83b..31940ec4c462 100644 --- a/toolkit/inc/helper/unopropertyarrayhelper.hxx +++ b/toolkit/inc/helper/unopropertyarrayhelper.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_TOOLKIT_INC_HELPER_UNOPROPERTYARRAYHELPER_HXX #define INCLUDED_TOOLKIT_INC_HELPER_UNOPROPERTYARRAYHELPER_HXX -#include #include #include diff --git a/toolkit/qa/cppunit/EventContainer.cxx b/toolkit/qa/cppunit/EventContainer.cxx index e5921f2fe404..7e2cb15157b6 100644 --- a/toolkit/qa/cppunit/EventContainer.cxx +++ b/toolkit/qa/cppunit/EventContainer.cxx @@ -9,10 +9,10 @@ #include -#include #include #include #include +#include #include #include #include diff --git a/toolkit/source/awt/animatedimagespeer.cxx b/toolkit/source/awt/animatedimagespeer.cxx index d6dc140f6f28..b542b564b8f0 100644 --- a/toolkit/source/awt/animatedimagespeer.cxx +++ b/toolkit/source/awt/animatedimagespeer.cxx @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include diff --git a/toolkit/source/awt/stylesettings.hxx b/toolkit/source/awt/stylesettings.hxx index 477a1f093be0..4e3f0b2df965 100644 --- a/toolkit/source/awt/stylesettings.hxx +++ b/toolkit/source/awt/stylesettings.hxx @@ -26,8 +26,6 @@ #include #include -#include - namespace osl { class Mutex; diff --git a/toolkit/source/awt/vclxbitmap.cxx b/toolkit/source/awt/vclxbitmap.cxx index e094a28d29c0..17111311dfbb 100644 --- a/toolkit/source/awt/vclxbitmap.cxx +++ b/toolkit/source/awt/vclxbitmap.cxx @@ -18,8 +18,6 @@ */ #include -#include -#include #include #include #include diff --git a/toolkit/source/awt/vclxdevice.cxx b/toolkit/source/awt/vclxdevice.cxx index 2d6cbe6a7c63..5b83b9e62047 100644 --- a/toolkit/source/awt/vclxdevice.cxx +++ b/toolkit/source/awt/vclxdevice.cxx @@ -26,13 +26,9 @@ #include #include #include -#include -#include #include #include -#include -#include #include #include #include diff --git a/toolkit/source/awt/vclxfont.cxx b/toolkit/source/awt/vclxfont.cxx index b524de4d1a5d..e84fe338c5b6 100644 --- a/toolkit/source/awt/vclxfont.cxx +++ b/toolkit/source/awt/vclxfont.cxx @@ -24,8 +24,6 @@ #include #include #include -#include -#include #include #include diff --git a/toolkit/source/awt/vclxgraphics.cxx b/toolkit/source/awt/vclxgraphics.cxx index 0475bf525999..a8409a5cf7da 100644 --- a/toolkit/source/awt/vclxgraphics.cxx +++ b/toolkit/source/awt/vclxgraphics.cxx @@ -21,9 +21,7 @@ #include #include #include -#include #include -#include #include #include diff --git a/toolkit/source/awt/vclxmenu.cxx b/toolkit/source/awt/vclxmenu.cxx index 3eda26c81236..b17f32c2aebc 100644 --- a/toolkit/source/awt/vclxmenu.cxx +++ b/toolkit/source/awt/vclxmenu.cxx @@ -19,14 +19,12 @@ #include #include -#include #include #include #include #include #include -#include #include #include #include diff --git a/toolkit/source/awt/vclxprinter.cxx b/toolkit/source/awt/vclxprinter.cxx index ce94e6bb6af1..c7d80bf43633 100644 --- a/toolkit/source/awt/vclxprinter.cxx +++ b/toolkit/source/awt/vclxprinter.cxx @@ -26,9 +26,7 @@ #include #include #include -#include -#include #include #include diff --git a/toolkit/source/awt/vclxregion.cxx b/toolkit/source/awt/vclxregion.cxx index a3e6268d5991..d9abedecfd54 100644 --- a/toolkit/source/awt/vclxregion.cxx +++ b/toolkit/source/awt/vclxregion.cxx @@ -18,10 +18,8 @@ */ #include -#include #include #include -#include diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx index f84e836de29c..761cd10c2674 100644 --- a/toolkit/source/awt/vclxwindows.cxx +++ b/toolkit/source/awt/vclxwindows.cxx @@ -31,8 +31,6 @@ #include #include #include -#include -#include #include #include #include @@ -44,7 +42,6 @@ #include #include #include -#include #include #include #include diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx index e9e563956b6b..8c84ba6bb1ce 100644 --- a/toolkit/source/controls/dialogcontrol.cxx +++ b/toolkit/source/controls/dialogcontrol.cxx @@ -43,7 +43,6 @@ #include #include -#include #include #include diff --git a/toolkit/source/controls/filectrl.cxx b/toolkit/source/controls/filectrl.cxx index 0827f9127d47..68fa61a02509 100644 --- a/toolkit/source/controls/filectrl.cxx +++ b/toolkit/source/controls/filectrl.cxx @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include diff --git a/toolkit/source/controls/formattedcontrol.cxx b/toolkit/source/controls/formattedcontrol.cxx index 83359a614b58..c4a8ad276d35 100644 --- a/toolkit/source/controls/formattedcontrol.cxx +++ b/toolkit/source/controls/formattedcontrol.cxx @@ -19,7 +19,6 @@ #include #include -#include #include #include diff --git a/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx b/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx index afa3e54157b0..24eb0cb58bb0 100644 --- a/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx +++ b/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx @@ -35,7 +35,6 @@ #include #include #include -#include #include #include diff --git a/toolkit/source/controls/roadmapcontrol.cxx b/toolkit/source/controls/roadmapcontrol.cxx index 8df570b64109..15c5cd7f1f3f 100644 --- a/toolkit/source/controls/roadmapcontrol.cxx +++ b/toolkit/source/controls/roadmapcontrol.cxx @@ -21,7 +21,6 @@ #include #include #include -#include #include #include diff --git a/toolkit/source/controls/stdtabcontroller.cxx b/toolkit/source/controls/stdtabcontroller.cxx index 119a77c9a497..c900d6d155a4 100644 --- a/toolkit/source/controls/stdtabcontroller.cxx +++ b/toolkit/source/controls/stdtabcontroller.cxx @@ -23,7 +23,6 @@ #include #include -#include #include #include #include diff --git a/toolkit/source/controls/stdtabcontrollermodel.cxx b/toolkit/source/controls/stdtabcontrollermodel.cxx index 5a4f65b60925..43fd80f1702c 100644 --- a/toolkit/source/controls/stdtabcontrollermodel.cxx +++ b/toolkit/source/controls/stdtabcontrollermodel.cxx @@ -22,7 +22,6 @@ #include #include -#include #include #include diff --git a/toolkit/source/controls/tkscrollbar.cxx b/toolkit/source/controls/tkscrollbar.cxx index 968cfc5cc25d..9fd764212997 100644 --- a/toolkit/source/controls/tkscrollbar.cxx +++ b/toolkit/source/controls/tkscrollbar.cxx @@ -19,13 +19,11 @@ #include #include -#include #include #include #include #include -#include #include diff --git a/toolkit/source/controls/unocontrolcontainermodel.cxx b/toolkit/source/controls/unocontrolcontainermodel.cxx index d9272c60fc66..ffcd520a4992 100644 --- a/toolkit/source/controls/unocontrolcontainermodel.cxx +++ b/toolkit/source/controls/unocontrolcontainermodel.cxx @@ -20,7 +20,6 @@ #include #include #include -#include #include diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx index 143b866aeb30..a62ac19a1487 100644 --- a/toolkit/source/controls/unocontrols.cxx +++ b/toolkit/source/controls/unocontrols.cxx @@ -32,7 +32,6 @@ #include #include #include -#include #include // for introspection @@ -43,7 +42,6 @@ #include #include #include -#include #include diff --git a/toolkit/source/hatchwindow/documentcloser.cxx b/toolkit/source/hatchwindow/documentcloser.cxx index 2eceee0d9c4c..42201691fac4 100644 --- a/toolkit/source/hatchwindow/documentcloser.cxx +++ b/toolkit/source/hatchwindow/documentcloser.cxx @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include diff --git a/toolkit/source/hatchwindow/hatchwindowfactory.cxx b/toolkit/source/hatchwindow/hatchwindowfactory.cxx index 7a06cc747d35..3e50db64ee82 100644 --- a/toolkit/source/hatchwindow/hatchwindowfactory.cxx +++ b/toolkit/source/hatchwindow/hatchwindowfactory.cxx @@ -24,7 +24,6 @@ #include #include #include -#include #include "hatchwindow.hxx" diff --git a/toolkit/source/helper/formpdfexport.cxx b/toolkit/source/helper/formpdfexport.cxx index 9061d3ec7bce..094a2fdf1950 100644 --- a/toolkit/source/helper/formpdfexport.cxx +++ b/toolkit/source/helper/formpdfexport.cxx @@ -39,7 +39,6 @@ #include #include -#include #include #include diff --git a/toolkit/source/helper/servicenames.cxx b/toolkit/source/helper/servicenames.cxx index e7b7d7b18991..825672fd20a1 100644 --- a/toolkit/source/helper/servicenames.cxx +++ b/toolkit/source/helper/servicenames.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include #include const char szServiceName_UnoControlDialog[] = "stardiv.vcl.control.Dialog"; diff --git a/toolkit/source/helper/unowrapper.cxx b/toolkit/source/helper/unowrapper.cxx index 5d5ce94a9b8f..6a12b915b4aa 100644 --- a/toolkit/source/helper/unowrapper.cxx +++ b/toolkit/source/helper/unowrapper.cxx @@ -29,8 +29,6 @@ #include #include -#include - #include using namespace ::com::sun::star; diff --git a/tools/IwyuFilter_tools.yaml b/tools/IwyuFilter_tools.yaml index cfd771ba1ee9..ecc4dd5f86f9 100644 --- a/tools/IwyuFilter_tools.yaml +++ b/tools/IwyuFilter_tools.yaml @@ -7,12 +7,20 @@ excludelist: - cppunit/plugin/TestPlugIn.h - tools/pathutils.hxx - cwchar + tools/qa/cppunit/test_cpu_runtime_detection_AVX2_check.cxx: + # Needed for LO_AVX2_AVAILABLE case + - sal/types.h + - tools/simdsupport.hxx + - stdlib.h + tools/qa/cppunit/test_cpu_runtime_detection_SSSE3_check.cxx: + # Needed for LO_SSSE3_AVAILABLE case + - tools/simdsupport.hxx + - stdlib.h tools/source/debug/debug.cxx: # Needed for linker visibility - tools/diagnose_ex.h - tools/source/generic/poly.cxx: - # OSL_BIGENDIAN is being checked - - osl/endian.h + # Keep for commented out "if defined __GLIBCXX__" path + - cxxabi.h tools/source/misc/extendapplicationenvironment.cxx: # Needed on MACOSX - config_folders.h diff --git a/tools/qa/cppunit/test_100mm2twips.cxx b/tools/qa/cppunit/test_100mm2twips.cxx index fc1d228f2d49..1fb69d98209b 100644 --- a/tools/qa/cppunit/test_100mm2twips.cxx +++ b/tools/qa/cppunit/test_100mm2twips.cxx @@ -22,7 +22,6 @@ #include #include -#include #include class UnitConversionTest : public CppUnit::TestFixture diff --git a/tools/qa/cppunit/test_cpu_runtime_detection_AVX2.cxx b/tools/qa/cppunit/test_cpu_runtime_detection_AVX2.cxx index 5a3a1ee26638..5ba8ed9ee2fb 100644 --- a/tools/qa/cppunit/test_cpu_runtime_detection_AVX2.cxx +++ b/tools/qa/cppunit/test_cpu_runtime_detection_AVX2.cxx @@ -7,13 +7,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include #include "test_cpu_runtime_detection_x86_checks.hxx" -#include #include #include -#include #include diff --git a/tools/qa/cppunit/test_cpu_runtime_detection_SSE2.cxx b/tools/qa/cppunit/test_cpu_runtime_detection_SSE2.cxx index 6da1850a135a..93bac6f2a130 100644 --- a/tools/qa/cppunit/test_cpu_runtime_detection_SSE2.cxx +++ b/tools/qa/cppunit/test_cpu_runtime_detection_SSE2.cxx @@ -7,14 +7,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include - #include "test_cpu_runtime_detection_x86_checks.hxx" -#include #include #include -#include #include diff --git a/tools/qa/cppunit/test_cpu_runtime_detection_SSE2_check.cxx b/tools/qa/cppunit/test_cpu_runtime_detection_SSE2_check.cxx index 7f14e1b51789..12e39eabfd64 100644 --- a/tools/qa/cppunit/test_cpu_runtime_detection_SSE2_check.cxx +++ b/tools/qa/cppunit/test_cpu_runtime_detection_SSE2_check.cxx @@ -7,7 +7,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include #include #include diff --git a/tools/qa/cppunit/test_cpu_runtime_detection_SSSE3.cxx b/tools/qa/cppunit/test_cpu_runtime_detection_SSSE3.cxx index 290d073745da..3c0e9d252466 100644 --- a/tools/qa/cppunit/test_cpu_runtime_detection_SSSE3.cxx +++ b/tools/qa/cppunit/test_cpu_runtime_detection_SSSE3.cxx @@ -7,14 +7,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include - #include "test_cpu_runtime_detection_x86_checks.hxx" -#include #include #include -#include #include diff --git a/tools/qa/cppunit/test_cpu_runtime_detection_SSSE3_check.cxx b/tools/qa/cppunit/test_cpu_runtime_detection_SSSE3_check.cxx index 9a93dadea79c..705e5c2ab3c9 100644 --- a/tools/qa/cppunit/test_cpu_runtime_detection_SSSE3_check.cxx +++ b/tools/qa/cppunit/test_cpu_runtime_detection_SSSE3_check.cxx @@ -7,7 +7,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include #include #include diff --git a/tools/qa/cppunit/test_cpuid.cxx b/tools/qa/cppunit/test_cpuid.cxx index cb9c1b9a7fb6..7d9b5c41cce3 100644 --- a/tools/qa/cppunit/test_cpuid.cxx +++ b/tools/qa/cppunit/test_cpuid.cxx @@ -10,7 +10,6 @@ #include #include #include -#include #include #include diff --git a/tools/qa/cppunit/test_json_writer.cxx b/tools/qa/cppunit/test_json_writer.cxx index fe3019e91b0a..2257fe6d834d 100644 --- a/tools/qa/cppunit/test_json_writer.cxx +++ b/tools/qa/cppunit/test_json_writer.cxx @@ -9,13 +9,10 @@ #include -#include - #include #include #include #include -#include #include namespace diff --git a/tools/qa/cppunit/test_xmlwriter.cxx b/tools/qa/cppunit/test_xmlwriter.cxx index 1cd207a4afe5..0fddb3d77de4 100644 --- a/tools/qa/cppunit/test_xmlwriter.cxx +++ b/tools/qa/cppunit/test_xmlwriter.cxx @@ -9,7 +9,6 @@ #include #include -#include #include #include diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx index 167bd95639ec..3bb080959e67 100644 --- a/tools/source/debug/debug.cxx +++ b/tools/source/debug/debug.cxx @@ -52,9 +52,6 @@ #include #include -#include -#include - #include #if defined __GLIBCXX__ diff --git a/tools/source/generic/fract.cxx b/tools/source/generic/fract.cxx index 078ffd87f387..49c26c0f1be4 100644 --- a/tools/source/generic/fract.cxx +++ b/tools/source/generic/fract.cxx @@ -19,7 +19,6 @@ #include #include -#include #include #include #include diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx index 1fe47071d4ce..b3331b7b4e4d 100644 --- a/tools/source/generic/gen.cxx +++ b/tools/source/generic/gen.cxx @@ -18,14 +18,12 @@ */ #include -#include +#include #include -#include -#include +#include #include #include -#include OString Pair::toString() const { diff --git a/tools/source/generic/point.cxx b/tools/source/generic/point.cxx index e9c3bd842a15..1aba284ff27f 100644 --- a/tools/source/generic/point.cxx +++ b/tools/source/generic/point.cxx @@ -18,7 +18,6 @@ */ #include -#include void Point::RotateAround( Point& rPoint, Degree10 nOrientation ) const diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index 687cb6a5d4fb..b0ec428d49f7 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -38,9 +38,7 @@ #include #include -#include #include -#include #include #include #include diff --git a/tools/source/inet/inetstrm.cxx b/tools/source/inet/inetstrm.cxx index 62889bae4733..c68b232d967c 100644 --- a/tools/source/inet/inetstrm.cxx +++ b/tools/source/inet/inetstrm.cxx @@ -22,7 +22,6 @@ #include #include -#include #include #include diff --git a/tools/source/misc/json_writer.cxx b/tools/source/misc/json_writer.cxx index 7730a9a603d5..fbb29bb2472c 100644 --- a/tools/source/misc/json_writer.cxx +++ b/tools/source/misc/json_writer.cxx @@ -9,7 +9,6 @@ #include #include -#include #include #include