From e8599a29c6540c05802d257671f3f4c572c73abc Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Fri, 20 Sep 2019 00:33:41 +0200 Subject: [PATCH] tdf#42949 Fix IWYU warnings in xmlhelp/ Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I266367d4f9e2b9bf637fc103a5e4876bd6b1d2b9 Reviewed-on: https://gerrit.libreoffice.org/79261 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- xmlhelp/IwyuFilter_xmlhelp.yaml | 9 +++++++++ xmlhelp/source/cxxhelp/inc/qe/DocGenerator.hxx | 4 ---- xmlhelp/source/cxxhelp/inc/tvfactory.hxx | 6 ++---- xmlhelp/source/cxxhelp/inc/tvread.hxx | 5 +---- xmlhelp/source/cxxhelp/provider/content.cxx | 6 +----- xmlhelp/source/cxxhelp/provider/content.hxx | 1 - xmlhelp/source/cxxhelp/provider/databases.cxx | 9 --------- xmlhelp/source/cxxhelp/provider/databases.hxx | 3 --- xmlhelp/source/cxxhelp/provider/db.cxx | 1 - xmlhelp/source/cxxhelp/provider/inputstream.cxx | 1 - xmlhelp/source/cxxhelp/provider/inputstream.hxx | 2 -- xmlhelp/source/cxxhelp/provider/provider.cxx | 6 +----- xmlhelp/source/cxxhelp/provider/resultset.hxx | 3 --- xmlhelp/source/cxxhelp/provider/resultsetbase.cxx | 3 --- xmlhelp/source/cxxhelp/provider/resultsetbase.hxx | 1 - xmlhelp/source/cxxhelp/provider/resultsetforquery.hxx | 1 - xmlhelp/source/cxxhelp/provider/resultsetforroot.hxx | 1 - xmlhelp/source/cxxhelp/provider/services.cxx | 1 - xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 11 +---------- xmlhelp/source/cxxhelp/provider/urlparameter.hxx | 1 - xmlhelp/source/treeview/tvfactory.cxx | 1 + xmlhelp/source/treeview/tvread.cxx | 1 - 22 files changed, 16 insertions(+), 61 deletions(-) create mode 100644 xmlhelp/IwyuFilter_xmlhelp.yaml diff --git a/xmlhelp/IwyuFilter_xmlhelp.yaml b/xmlhelp/IwyuFilter_xmlhelp.yaml new file mode 100644 index 000000000000..1430d6a09245 --- /dev/null +++ b/xmlhelp/IwyuFilter_xmlhelp.yaml @@ -0,0 +1,9 @@ +--- +assumeFilename: xmlhelp/source/cxxhelp/provider/content.cxx +blacklist: + xmlhelp/source/cxxhelp/provider/content.cxx: + # Needed for CPPU_TYPE_REF macro + - com/sun/star/ucb/XCommandInfo.hpp + xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx: + # Needed for CLuceneError as a pass-through header + - CLucene.h diff --git a/xmlhelp/source/cxxhelp/inc/qe/DocGenerator.hxx b/xmlhelp/source/cxxhelp/inc/qe/DocGenerator.hxx index c0aa93c87eb2..45eb6005730b 100644 --- a/xmlhelp/source/cxxhelp/inc/qe/DocGenerator.hxx +++ b/xmlhelp/source/cxxhelp/inc/qe/DocGenerator.hxx @@ -19,10 +19,6 @@ #ifndef INCLUDED_XMLHELP_SOURCE_CXXHELP_INC_QE_DOCGENERATOR_HXX #define INCLUDED_XMLHELP_SOURCE_CXXHELP_INC_QE_DOCGENERATOR_HXX -#include -#include -#include - namespace xmlsearch { namespace qe { diff --git a/xmlhelp/source/cxxhelp/inc/tvfactory.hxx b/xmlhelp/source/cxxhelp/inc/tvfactory.hxx index 0f34599542a4..9eb8b2f3f0c0 100644 --- a/xmlhelp/source/cxxhelp/inc/tvfactory.hxx +++ b/xmlhelp/source/cxxhelp/inc/tvfactory.hxx @@ -20,14 +20,12 @@ #ifndef INCLUDED_XMLHELP_SOURCE_CXXHELP_INC_TVFACTORY_HXX #define INCLUDED_XMLHELP_SOURCE_CXXHELP_INC_TVFACTORY_HXX -#include #include -#include -#include #include +#include #include -#include #include +#include #include diff --git a/xmlhelp/source/cxxhelp/inc/tvread.hxx b/xmlhelp/source/cxxhelp/inc/tvread.hxx index 05c6991ab28c..c466fbba682b 100644 --- a/xmlhelp/source/cxxhelp/inc/tvread.hxx +++ b/xmlhelp/source/cxxhelp/inc/tvread.hxx @@ -23,11 +23,8 @@ #include #include #include -#include #include -#include -#include -#include +#include #include #include #include diff --git a/xmlhelp/source/cxxhelp/provider/content.cxx b/xmlhelp/source/cxxhelp/provider/content.cxx index d9e4813ae3b2..55fef768ffab 100644 --- a/xmlhelp/source/cxxhelp/provider/content.cxx +++ b/xmlhelp/source/cxxhelp/provider/content.cxx @@ -22,11 +22,9 @@ ************************************************************************** *************************************************************************/ -#include -#include +#include #include #include -#include #include #include #include @@ -34,8 +32,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/xmlhelp/source/cxxhelp/provider/content.hxx b/xmlhelp/source/cxxhelp/provider/content.hxx index 5f639762ff05..b16c56efa2f3 100644 --- a/xmlhelp/source/cxxhelp/provider/content.hxx +++ b/xmlhelp/source/cxxhelp/provider/content.hxx @@ -21,7 +21,6 @@ #define INCLUDED_XMLHELP_SOURCE_CXXHELP_PROVIDER_CONTENT_HXX #include -#include #include "urlparameter.hxx" diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index c097c08a40b3..cf5e5c0fa128 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -21,8 +21,6 @@ #include "db.hxx" #include #include -#include -#include #include #include #include @@ -40,12 +38,10 @@ // Extensible help #include #include -#include #include #include #include #include -#include #include #include #include @@ -54,16 +50,11 @@ #include #include -#include -#include -#include #include #include #include -#include - #include "databases.hxx" #include "urlparameter.hxx" diff --git a/xmlhelp/source/cxxhelp/provider/databases.hxx b/xmlhelp/source/cxxhelp/provider/databases.hxx index c7ffa765b348..ff1c6fd69271 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.hxx +++ b/xmlhelp/source/cxxhelp/provider/databases.hxx @@ -23,7 +23,6 @@ #include #include -#include #include #include #include @@ -31,9 +30,7 @@ #include #include #include -#include #include -#include #include #include #include diff --git a/xmlhelp/source/cxxhelp/provider/db.cxx b/xmlhelp/source/cxxhelp/provider/db.cxx index c99a07403104..bf8da3ce7f04 100644 --- a/xmlhelp/source/cxxhelp/provider/db.cxx +++ b/xmlhelp/source/cxxhelp/provider/db.cxx @@ -20,7 +20,6 @@ #include "db.hxx" -#include #include #include diff --git a/xmlhelp/source/cxxhelp/provider/inputstream.cxx b/xmlhelp/source/cxxhelp/provider/inputstream.cxx index e5f18bb5fcc9..8eaebf364320 100644 --- a/xmlhelp/source/cxxhelp/provider/inputstream.cxx +++ b/xmlhelp/source/cxxhelp/provider/inputstream.cxx @@ -27,7 +27,6 @@ using namespace chelp; using namespace com::sun::star; -using namespace com::sun::star::ucb; XInputStream_impl::XInputStream_impl( const OUString& aUncPath ) diff --git a/xmlhelp/source/cxxhelp/provider/inputstream.hxx b/xmlhelp/source/cxxhelp/provider/inputstream.hxx index 9c37cd9d5b4f..d3292ec1967e 100644 --- a/xmlhelp/source/cxxhelp/provider/inputstream.hxx +++ b/xmlhelp/source/cxxhelp/provider/inputstream.hxx @@ -23,10 +23,8 @@ #include #include #include -#include #include #include -#include namespace chelp { diff --git a/xmlhelp/source/cxxhelp/provider/provider.cxx b/xmlhelp/source/cxxhelp/provider/provider.cxx index 865f4066fbe8..b82ba4917d24 100644 --- a/xmlhelp/source/cxxhelp/provider/provider.cxx +++ b/xmlhelp/source/cxxhelp/provider/provider.cxx @@ -19,14 +19,10 @@ #include -#include #include #include -#include -#include -#include -#include #include +#include #include #include #include diff --git a/xmlhelp/source/cxxhelp/provider/resultset.hxx b/xmlhelp/source/cxxhelp/provider/resultset.hxx index 24891246d766..2d276fa36dc4 100644 --- a/xmlhelp/source/cxxhelp/provider/resultset.hxx +++ b/xmlhelp/source/cxxhelp/provider/resultset.hxx @@ -22,9 +22,6 @@ #include #include -#include - -#include "content.hxx" namespace chelp { diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx index 911a74a4b0b9..e4d74404b7fd 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx @@ -19,11 +19,8 @@ #include #include -#include #include #include -#include -#include #include #include diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.hxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.hxx index 8c6e0cfcd713..50cd31e971c1 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetbase.hxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.hxx @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.hxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.hxx index 98480b04e6d6..2a3127b2b5ac 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetforquery.hxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetforquery.hxx @@ -22,7 +22,6 @@ #include #include #include -#include #include "resultsetbase.hxx" #include "urlparameter.hxx" diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforroot.hxx b/xmlhelp/source/cxxhelp/provider/resultsetforroot.hxx index 6a54edd07c1a..17add2d3c0fc 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetforroot.hxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetforroot.hxx @@ -22,7 +22,6 @@ #include #include #include -#include #include "resultsetbase.hxx" #include "urlparameter.hxx" diff --git a/xmlhelp/source/cxxhelp/provider/services.cxx b/xmlhelp/source/cxxhelp/provider/services.cxx index 52e0616f65c0..5778a27ce6e5 100644 --- a/xmlhelp/source/cxxhelp/provider/services.cxx +++ b/xmlhelp/source/cxxhelp/provider/services.cxx @@ -19,7 +19,6 @@ #include #include -#include #include "provider.hxx" #include diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx index d77c70552bb9..8a395226e99f 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx @@ -19,16 +19,13 @@ #include -#include #include #include #include #include #include #include -#include #include -#include #include #include #include @@ -37,13 +34,7 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include +#include #include #include "urlparameter.hxx" diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx index 4104c2a13cb2..7adc4c1aa4e9 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx @@ -22,7 +22,6 @@ #include #include -#include #include #include diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx index e4fc02c58e41..9f59b66e4025 100644 --- a/xmlhelp/source/treeview/tvfactory.cxx +++ b/xmlhelp/source/treeview/tvfactory.cxx @@ -23,6 +23,7 @@ #include #include #include +#include #include #include diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index 4ae8f7a0aff8..6a6ea52552b9 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -28,7 +28,6 @@ #include #include #include -#include #include #include