From 7bdbb50a507df4c419f68d2ae453dd482267f168 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Sat, 31 Oct 2020 14:32:20 +0100 Subject: tdf#42949 Fix new IWYU warnings in directories c* Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Iac1e7802dbe1efa01c2befdd10406231788d4fc1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105315 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- cppuhelper/IwyuFilter_cppuhelper.yaml | 11 +++++++++++ cppuhelper/source/exc_thrower.cxx | 3 --- cppuhelper/source/supportsservice.cxx | 1 - 3 files changed, 11 insertions(+), 4 deletions(-) (limited to 'cppuhelper') diff --git a/cppuhelper/IwyuFilter_cppuhelper.yaml b/cppuhelper/IwyuFilter_cppuhelper.yaml index c3f92ce5e093..cbae100fb19d 100644 --- a/cppuhelper/IwyuFilter_cppuhelper.yaml +++ b/cppuhelper/IwyuFilter_cppuhelper.yaml @@ -22,6 +22,10 @@ excludelist: cppuhelper/source/exc_thrower.cxx: # No hpp -> hdl switch - cppuhelper/detail/XExceptionThrower.hpp + # Needed for mobile versions + - sal/log.hxx + - com/sun/star/ucb/InteractiveAugmentedIOException.hpp + - com/sun/star/ucb/NameClashException.hpp # Needed for cppu::throwException - cppuhelper/exc_hlp.hxx cppuhelper/source/findsofficepath.c: @@ -46,3 +50,10 @@ excludelist: cppuhelper/source/tdmgr.cxx: # Needed to inherit linker visibility from function declaration - cppuhelper/bootstrap.hxx + cppuhelper/source/typemanager.cxx: + # Actually used + - com/sun/star/reflection/TypeDescriptionSearchDepth.hpp + - com/sun/star/uno/TypeClass.hpp + cppuhelper/source/servicemanager.cxx: + # Actually used + - com/sun/star/uno/XComponentContext.hpp diff --git a/cppuhelper/source/exc_thrower.cxx b/cppuhelper/source/exc_thrower.cxx index 7c40d12db16e..ab7ed83f53e1 100644 --- a/cppuhelper/source/exc_thrower.cxx +++ b/cppuhelper/source/exc_thrower.cxx @@ -17,11 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include - #include #include -#include #include #include #include diff --git a/cppuhelper/source/supportsservice.cxx b/cppuhelper/source/supportsservice.cxx index eea82602a2ef..f7f267ea0fd5 100644 --- a/cppuhelper/source/supportsservice.cxx +++ b/cppuhelper/source/supportsservice.cxx @@ -16,7 +16,6 @@ #include #include #include -#include bool cppu::supportsService( css::lang::XServiceInfo * implementation, OUString const & name) -- cgit