tdf#146619 Run IWYU on comphelper/

Change-Id: If7c9691b5531d079e80ce3115409e60777bd75f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189789
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
This commit is contained in:
Gabor Kelemen
2025-09-12 23:56:34 +02:00
committed by Gabor Kelemen
parent 02db8e7392
commit 2ceebbe548
31 changed files with 14 additions and 50 deletions
+8
View File
@@ -34,9 +34,14 @@ excludelist:
comphelper/source/container/enumerablemap.cxx:
# Avoid loplugin:unreffun error
- comphelper_services.hxx
# Needed for typedef
- com/sun/star/lang/XServiceInfo.hpp
comphelper/source/container/namecontainer.cxx:
# Needed for NameContainer_createInstance
- comphelper/namecontainer.hxx
comphelper/source/crypto/Crypto_NSS.cxx:
# Keep catch-all interface file of NSPR
- nspr.h
comphelper/source/eventattachermgr/eventattachermgr.cxx:
# Needed for linker visibility
- comphelper/eventattachermgr.hxx
@@ -52,6 +57,9 @@ excludelist:
comphelper/source/misc/graphicmimetype.cxx:
# Needed for direct member access
- com/sun/star/io/XInputStream.hpp
comphelper/source/misc/hash.cxx:
# Keep catch-all interface file of NSPR
- nspr.h
comphelper/source/misc/instancelocker.cxx:
# Needed for template
- com/sun/star/embed/XActionsApproval.hpp
@@ -19,16 +19,10 @@
#include <comphelper/string.hxx>
#include <comphelper/processfactory.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/i18n/CharType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <com/sun/star/i18n/XCollator.hpp>
#include <unotest/bootstrapfixturebase.hxx>
#include <cppunit/TestAssert.h>
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/plugin/TestPlugIn.h>
#include <rtl/ustring.hxx>
using namespace css;
-4
View File
@@ -22,10 +22,6 @@
#include <iterator>
#include <comphelper/string.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/i18n/CharType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <com/sun/star/i18n/XCollator.hpp>
#include <cppunit/TestAssert.h>
#include <cppunit/TestFixture.h>
+1 -1
View File
@@ -12,7 +12,7 @@
#include <comphelper/crypto/Crypto.hxx>
#include <comphelper/hash.hxx>
#include <rtl/ustring.hxx>
#include <rtl/string.hxx>
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
@@ -28,7 +28,6 @@
#include <com/sun/star/embed/XOptimizedStorage.hpp>
#include <com/sun/star/embed/EntryInitModes.hpp>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/util/XCloseable.hpp>
#include <com/sun/star/util/XModifiable.hpp>
#include <com/sun/star/embed/EmbedStates.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
@@ -25,7 +25,6 @@
#include <comphelper/namecontainer.hxx>
#include <comphelper/sequence.hxx>
#include <cppuhelper/implbase.hxx>
#include <osl/mutex.hxx>
#include <com/sun/star/container/XNameContainer.hpp>
typedef std::map<OUString, css::uno::Any> SvGenericNameContainerMapImpl;
-2
View File
@@ -8,9 +8,7 @@
*/
#include <comphelper/crypto/Crypto.hxx>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <sal/types.h>
#include <config_oox.h>
namespace comphelper
{
-1
View File
@@ -10,7 +10,6 @@
#include <comphelper/crypto/Crypto.hxx>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <sal/types.h>
#include <config_oox.h>
#include <nss.h>
#include <nspr.h>
@@ -23,7 +23,6 @@
#include <limits>
#include <map>
#include <memory>
#include <unordered_map>
using namespace ::com::sun::star::uno;
+1 -2
View File
@@ -22,8 +22,7 @@
#include <o3tl/hash_combine.hxx>
#include <typelib/typedescription.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/Any.hxx>
#include "typedescriptionref.hxx"
@@ -25,7 +25,6 @@
#include <cassert>
#include <stdexcept>
#include <vector>
#include <algorithm>
namespace comphelper
{
+1 -2
View File
@@ -25,6 +25,7 @@
#include <comphelper/processfactory.hxx>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/ucb/CommandAbortedException.hpp>
#include <com/sun/star/ucb/CommandFailedException.hpp>
#include <com/sun/star/uno/Sequence.hxx>
@@ -39,10 +40,8 @@
#include <com/sun/star/xml/sax/XSAXSerializable.hpp>
#include <com/sun/star/xml/sax/Writer.hpp>
#include <com/sun/star/xml/sax/XWriter.hpp>
#include <com/sun/star/io/XStream.hpp>
#include <com/sun/star/io/TempFile.hpp>
#include <com/sun/star/io/XOutputStream.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <cppuhelper/exc_hlp.hxx>
using namespace comphelper;
-2
View File
@@ -19,8 +19,6 @@
#include <comphelper/date.hxx>
#include <cassert>
namespace comphelper::date
{
// Once upon a time the number of days we internally handled in tools' class
-1
View File
@@ -47,7 +47,6 @@
#include <com/sun/star/xml/sax/SAXException.hpp>
#include <com/sun/star/xml/sax/SAXParseException.hpp>
#include <comphelper/anytostring.hxx>
#include <sal/log.hxx>
#include <osl/thread.h>
#include <rtl/strbuf.hxx>
@@ -9,12 +9,13 @@
#include <sal/config.h>
#include <comphelper/emscriptenthreading.hxx>
#include <config_emscripten.h>
#include <config_vclplug.h>
#if defined EMSCRIPTEN && ENABLE_QT6 && HAVE_EMSCRIPTEN_JSPI && !HAVE_EMSCRIPTEN_PROXY_TO_PTHREAD
#include <comphelper/emscriptenthreading.hxx>
#include <mutex>
#include <thread>
-1
View File
@@ -18,7 +18,6 @@
*/
#include <comphelper/errcode.hxx>
#include <rtl/ustrbuf.hxx>
#include <o3tl/runtimetooustring.hxx>
UNLESS_MERGELIBS(COMPHELPER_DLLPUBLIC) OUString ErrCode::toString() const
-1
View File
@@ -20,7 +20,6 @@
#include <sal/config.h>
#include <comphelper/fileurl.hxx>
#include <rtl/ustring.hxx>
#include <o3tl/string_view.hxx>
bool comphelper::isFileUrl(std::u16string_view url)
@@ -33,7 +33,6 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
#include <frozen/bits/defines.h>
#include <frozen/bits/elsa_std.h>
#include <frozen/unordered_map.h>
-2
View File
@@ -11,13 +11,11 @@
*/
#include <comphelper/random.hxx>
#include <sal/log.hxx>
#include <assert.h>
#include <time.h>
#include <mutex>
#include <random>
#include <rtl/random.h>
#include <stdexcept>
#if defined HAVE_VALGRIND_HEADERS
#include <valgrind/memcheck.h>
#endif
-1
View File
@@ -20,7 +20,6 @@
#include <sal/config.h>
#include <comphelper/solarmutex.hxx>
#include <osl/thread.hxx>
#include <assert.h>
#include <cstdlib>
-2
View File
@@ -27,7 +27,6 @@
#include <com/sun/star/embed/FileSystemStorageFactory.hpp>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
@@ -41,7 +40,6 @@
#include <rtl/digest.h>
#include <rtl/random.h>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <ucbhelper/content.hxx>
-1
View File
@@ -11,7 +11,6 @@
#include <atomic>
#include <mutex>
#include <iostream>
#include <comphelper/profilezone.hxx>
#include <comphelper/sequence.hxx>
@@ -25,8 +25,6 @@
#include <com/sun/star/uno/DeploymentException.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
namespace com::sun::star::uno { class XComponentContext; }
using namespace ::com::sun::star;
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
@@ -22,7 +22,6 @@
#include <comphelper/solarmutex.hxx>
#include <memory>
#include <optional>
using namespace ::comphelper;
@@ -25,7 +25,6 @@
#include <comphelper/solarmutex.hxx>
#include <memory>
#include <vector>
#include <optional>
@@ -23,7 +23,7 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
#include <cppuhelper/weakagg.hxx>
#include <com/sun/star/uno/XAggregation.hpp>
#include <cppuhelper/supportsservice.hxx>
#include <comphelper/multiinterfacecontainer4.hxx>
#include <comphelper/propertysethelper.hxx>
@@ -18,7 +18,6 @@
*/
#include <comphelper/propertycontainer.hxx>
#include <cppuhelper/typeprovider.hxx>
namespace comphelper
@@ -26,7 +25,6 @@ namespace comphelper
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
OPropertyContainer::OPropertyContainer(::cppu::OBroadcastHelper& _rBHelper)
:OPropertySetHelper(_rBHelper)
@@ -18,13 +18,10 @@
*/
#include <comphelper/propertycontainer2.hxx>
#include <cppuhelper/typeprovider.hxx>
namespace comphelper
{
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
OPropertyContainer2::OPropertyContainer2() {}
@@ -19,7 +19,6 @@
#include <comphelper/propertysetinfo.hxx>
#include <comphelper/sequence.hxx>
using namespace ::comphelper;
-1
View File
@@ -19,7 +19,6 @@
#include <comphelper/basicio.hxx>
#include <comphelper/bytereader.hxx>
#include <comphelper/servicehelper.hxx>
#include <com/sun/star/awt/FontDescriptor.hpp>
namespace comphelper
@@ -19,13 +19,10 @@
#include <algorithm>
#include <cassert>
#include <memory>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/io/IOException.hpp>
//#include <com/sun/star/uno/XComponentContext.hpp>
#include <comphelper/memorystream.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <o3tl/safeint.hxx>