tdf#146619 Run IWYU on basic/

Change-Id: I58883f0223a28f3ea887c37e2a86a3c31ff88546
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188749
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
This commit is contained in:
Gabor Kelemen
2025-08-18 20:19:07 +02:00
committed by Gabor Kelemen
parent 8070a17886
commit c309a5785d
29 changed files with 11 additions and 62 deletions
-18
View File
@@ -4,15 +4,9 @@ excludelist:
basic/source/runtime/dllmgr.hxx:
# Needed on WIN
- memory
basic/source/sbx/sbxconv.hxx:
# math::round is used
- rtl/math.hxx
basic/qa/cppunit/test_compiler_checks.cxx:
# Keep for system-cppunit; see also commit 456d61ec526e250fd1af894e109d5914ac9c9e6e
- unotest/bootstrapfixturebase.hxx
basic/source/comp/exprnode.cxx:
# math::round is used
- rtl/math.hxx
basic/source/runtime/methods.cxx:
# Needed on WIN
- o3tl/char16_t2wchar_t.hxx
@@ -20,15 +14,3 @@ excludelist:
basic/source/sbx/sbxdec.cxx:
# Needed on WIN
- o3tl/char16_t2wchar_t.hxx
basic/source/sbx/sbxbyte.cxx:
# math::round is used
- rtl/math.hxx
basic/source/sbx/sbxchar.cxx:
# math::round is used
- rtl/math.hxx
basic/source/sbx/sbxint.cxx:
# math::round is used
- rtl/math.hxx
basic/source/sbx/sbxlng.cxx:
# math::round is used
- rtl/math.hxx
+1
View File
@@ -10,6 +10,7 @@
#include "basictest.hxx"
#include <osl/file.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <test/bootstrapfixture.hxx>
#include <unotools/syslocaleoptions.hxx>
namespace
+2
View File
@@ -8,7 +8,9 @@
*/
#include "basictest.hxx"
#include <cppunit/TestAssert.h>
#include <cppunit/plugin/TestPlugIn.h>
#include <com/sun/star/uno/Sequence.hxx>
#include <basic/sbstar.hxx>
#include <basic/sbmod.hxx>
#include <basic/sbmeth.hxx>
-6
View File
@@ -9,15 +9,9 @@
#pragma once
#include <sal/types.h>
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/plugin/TestPlugIn.h>
#include <test/bootstrapfixture.hxx>
#include <basic/sbstar.hxx>
#include <basic/basrdll.hxx>
#include <basic/sbmod.hxx>
#include <basic/sbmeth.hxx>
#include <basic/sbuno.hxx>
class MacroSnippet
{
+1
View File
@@ -8,6 +8,7 @@
*/
#include "basictest.hxx"
#include <test/bootstrapfixture.hxx>
namespace
{
+1
View File
@@ -11,6 +11,7 @@
#include <com/sun/star/awt/WindowDescriptor.hpp>
#include <com/sun/star/table/TableBorder.hpp>
#include <basic/sbuno.hxx>
#include <test/bootstrapfixture.hxx>
namespace
{
+3
View File
@@ -8,6 +8,7 @@
*/
#include "basictest.hxx"
#include <unotools/syslocaleoptions.hxx>
#include <test/bootstrapfixture.hxx>
#ifdef _WIN32
#include <string.h>
@@ -17,7 +18,9 @@
#include <systools/win32/odbccp32.hxx>
#endif
#ifdef _WIN64
using namespace ::com::sun::star;
#endif
namespace
{
-2
View File
@@ -18,7 +18,6 @@
*/
#include <utility>
#include <vcl/errinf.hxx>
#include <tools/stream.hxx>
#include <sot/storage.hxx>
#include <tools/urlobj.hxx>
@@ -39,7 +38,6 @@
#include <basic/basmgr.hxx>
#include <global.hxx>
#include <com/sun/star/script/XLibraryContainer.hpp>
#include <com/sun/star/script/XPersistentLibraryContainer.hpp>
#include <scriptcont.hxx>
@@ -20,7 +20,6 @@
#include <basic/codecompletecache.hxx>
#include <iostream>
#include <officecfg/Office/BasicIDE.hxx>
#include <officecfg/Office/Common.hxx>
namespace
{
-1
View File
@@ -21,7 +21,6 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <com/sun/star/awt/XControlContainer.hpp>
#include <com/sun/star/awt/XControl.hpp>
#include <com/sun/star/awt/DialogProvider.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
+1
View File
@@ -23,6 +23,7 @@
#include <o3tl/safeint.hxx>
#include <sal/log.hxx>
#include <basic/sbx.hxx>
#include <filefmt.hxx>
#include <sb.hxx>
#include <sbxprop.hxx>
#include <string.h>
-1
View File
@@ -23,7 +23,6 @@
#include <rtl/ustrbuf.hxx>
#include <tools/stream.hxx>
#include <tools/debug.hxx>
#include <vcl/errinf.hxx>
#include <comphelper/solarmutex.hxx>
#include <basic/sbx.hxx>
#include <vcl/svapp.hxx>
+1
View File
@@ -30,6 +30,7 @@
#include <sbjsmod.hxx>
#include <sbintern.hxx>
#include <sbprop.hxx>
#include <filefmt.hxx>
#include <image.hxx>
#include <opcodes.hxx>
#include <runtime.hxx>
-1
View File
@@ -21,7 +21,6 @@
#include <array>
#include <basic/sberrors.hxx>
#include <sal/macros.h>
#include <o3tl/string_view.hxx>
#include <basiccharclass.hxx>
#include <token.hxx>
-3
View File
@@ -24,9 +24,6 @@
#include <com/sun/star/resource/XStringResourceSupplier.hpp>
#include <com/sun/star/resource/XStringResourcePersistence.hpp>
#include <cppuhelper/implbase1.hxx>
#include <comphelper/uno3.hxx>
namespace basic
{
-1
View File
@@ -21,7 +21,6 @@
#include <basic/sbx.hxx>
#include <rtl/ustring.hxx>
#include "filefmt.hxx"
#include <o3tl/typed_flags_set.hxx>
#include <cstddef>
#include <vector>
-5
View File
@@ -42,15 +42,10 @@
#include <com/sun/star/script/vba/XVBAScriptListener.hpp>
#include <com/sun/star/util/XChangesNotifier.hpp>
#include <osl/mutex.hxx>
#include <unotools/eventlisteneradapter.hxx>
#include <comphelper/compbase.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/weakref.hxx>
#include <cppuhelper/basemutex.hxx>
#include <rtl/ref.hxx>
#include <comphelper/interfacecontainer3.hxx>
#include <comphelper/interfacecontainer4.hxx>
#include <xmlscript/xmllib_imexp.hxx>
-1
View File
@@ -38,7 +38,6 @@
#include <com/sun/star/container/XIndexAccess.hpp>
#include <unotools/localedatawrapper.hxx>
#include <o3tl/deleter.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <tools/wldcrd.hxx>
class SbiRuntime; // active StarBASIC procedure instance
-3
View File
@@ -20,10 +20,7 @@
#pragma once
#include "namecont.hxx"
#include <basic/basmgr.hxx>
#include <com/sun/star/script/vba/XVBAModuleInfo.hpp>
#include <comphelper/uno3.hxx>
#include <cppuhelper/implbase1.hxx>
namespace basic
{
-2
View File
@@ -85,9 +85,7 @@
#include <basic/vbahelper.hxx>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sbobjmod.hxx>
-3
View File
@@ -22,8 +22,6 @@
#include <sal/config.h>
#include <config_version.h>
#include <cstddef>
#include <rtl/math.hxx>
#include <vcl/svapp.hxx>
#include <vcl/mapmod.hxx>
@@ -38,7 +36,6 @@
#include <o3tl/environment.hxx>
#include <o3tl/temporary.hxx>
#include <osl/file.hxx>
#include <osl/process.h>
#include <sbobjmod.hxx>
#include <basic/sbuno.hxx>
-3
View File
@@ -23,12 +23,10 @@
#include <string_view>
#include <unordered_map>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/script/XDefaultMethod.hpp>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/util/SearchAlgorithms2.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
@@ -44,7 +42,6 @@
#include <rtl/math.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/character.hxx>
#include <svl/numformat.hxx>
#include <svl/zforlist.hxx>
-1
View File
@@ -21,7 +21,6 @@
#include <basic/sberrors.hxx>
#include <basic/sbxvar.hxx>
#include <o3tl/string_view.hxx>
#include <svl/numformat.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
-1
View File
@@ -42,7 +42,6 @@ COMMENT: Visual-Basic treats the following (invalid) format-strings
(this class behaves the same way)
*/
#include <stdio.h>
#include <float.h>
#include <math.h>
-3
View File
@@ -21,14 +21,11 @@
#include <config_features.h>
#include <o3tl/safeint.hxx>
#include <comphelper/errcode.hxx>
#include <basic/sberrors.hxx>
#include "sbxconv.hxx"
#include <runtime.hxx>
#include <rtl/math.hxx>
namespace
{
template <class T>
-1
View File
@@ -31,7 +31,6 @@
#include <svl/SfxBroadcaster.hxx>
#include "sbxdec.hxx"
#include "sbxres.hxx"
#include <filefmt.hxx>
static OUString pNameProp; // Name-Property
-1
View File
@@ -23,7 +23,6 @@
#include <string_view>
#include <osl/diagnose.h>
#include <o3tl/float_int_conversion.hxx>
#include <o3tl/safeint.hxx>
#include <tools/debug.hxx>
#include <tools/stream.hxx>
-4
View File
@@ -21,7 +21,6 @@
#include <config_folders.h>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/container/XContainer.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/embed/XTransactedObject.hpp>
#include <com/sun/star/io/IOException.hpp>
@@ -34,7 +33,6 @@
#include <vcl/svapp.hxx>
#include <o3tl/string_view.hxx>
#include <o3tl/temporary.hxx>
#include <osl/mutex.hxx>
#include <vcl/errinf.hxx>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
@@ -66,9 +64,7 @@
#include <com/sun/star/deployment/ExtensionManager.hpp>
#include <comphelper/storagehelper.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/queryinterface.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <memory>
#include <string_view>
+1
View File
@@ -32,6 +32,7 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <comphelper/storagehelper.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <sot/storage.hxx>