From 67478f9d637096781c9e3df64896b1ddaccc331b Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Thu, 20 Jan 2022 20:54:56 +0100 Subject: Recheck modules [i-l]* with IWYU See tdf#42949 for motivation Change-Id: I758bb27e93779e3df21c463714e49354748f446f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128715 Tested-by: Jenkins Reviewed-by: Thorsten Behrens --- lingucomponent/IwyuFilter_lingucomponent.yaml | 20 ++++++++++++++++++++ .../source/hyphenator/hyphen/hyphenimp.cxx | 5 ----- lingucomponent/source/languageguessing/guess.cxx | 1 - lingucomponent/source/languageguessing/guesslang.cxx | 1 - .../source/languageguessing/simpleguesser.cxx | 4 ---- .../source/languageguessing/simpleguesser.hxx | 2 -- lingucomponent/source/lingutil/lingutil.hxx | 2 -- lingucomponent/source/numbertext/numbertext.cxx | 5 ----- lingucomponent/source/spellcheck/spell/sspellimp.cxx | 7 +------ lingucomponent/source/spellcheck/spell/sspellimp.hxx | 9 +++------ lingucomponent/source/thesaurus/libnth/nthesimp.cxx | 6 ------ 11 files changed, 24 insertions(+), 38 deletions(-) create mode 100644 lingucomponent/IwyuFilter_lingucomponent.yaml (limited to 'lingucomponent') diff --git a/lingucomponent/IwyuFilter_lingucomponent.yaml b/lingucomponent/IwyuFilter_lingucomponent.yaml new file mode 100644 index 000000000000..ebea8246ccca --- /dev/null +++ b/lingucomponent/IwyuFilter_lingucomponent.yaml @@ -0,0 +1,20 @@ +--- +assumeFilename: lingucomponent/source/spellcheck/spell/sspellimp.cxx +excludelist: + lingucomponent/source/lingutil/lingutil.hxx: + # Needed on WIN + - rtl/string.hxx + lingucomponent/source/languageguessing/guesslang.cxx: + # Needed for code protected by EXTTEXTCAT_VERSION_MAJOR + - libexttextcat/textcat.h + - tools/debug.hxx + - sal/macros.h + lingucomponent/source/numbertext/numbertext.cxx: + # Needed on WIN + - o3tl/char16_t2wchar_t.hxx + lingucomponent/source/spellcheck/spell/sspellimp.cxx: + # Needed for SpellFailure::SPELLING_ERROR + - com/sun/star/linguistic2/SpellFailure.hpp + lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx: + # Actually used + - com/sun/star/linguistic2/XLinguProperties.hpp diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx index 3163b631e9cd..9ccc1210956a 100644 --- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx +++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx @@ -23,8 +23,6 @@ #include #include #include -#include -#include #include #include #include @@ -40,12 +38,9 @@ #include #include -#include #include #include #include -#include -#include #include #include #include diff --git a/lingucomponent/source/languageguessing/guess.cxx b/lingucomponent/source/languageguessing/guess.cxx index e6eb506eb6fe..a7cbeccabc98 100644 --- a/lingucomponent/source/languageguessing/guess.cxx +++ b/lingucomponent/source/languageguessing/guess.cxx @@ -20,7 +20,6 @@ #include #include -#include #include #ifdef SYSTEM_LIBEXTTEXTCAT diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx index 987642538f0e..d6d5803a51a7 100644 --- a/lingucomponent/source/languageguessing/guesslang.cxx +++ b/lingucomponent/source/languageguessing/guesslang.cxx @@ -26,7 +26,6 @@ #include #include -#include #include #include diff --git a/lingucomponent/source/languageguessing/simpleguesser.cxx b/lingucomponent/source/languageguessing/simpleguesser.cxx index 8c370b576315..7b4d9f1119ad 100644 --- a/lingucomponent/source/languageguessing/simpleguesser.cxx +++ b/lingucomponent/source/languageguessing/simpleguesser.cxx @@ -28,21 +28,17 @@ */ #include -#include -#include #ifdef SYSTEM_LIBEXTTEXTCAT #include #include #include #include -#include #else #include #include #include #include -#include #endif #include diff --git a/lingucomponent/source/languageguessing/simpleguesser.hxx b/lingucomponent/source/languageguessing/simpleguesser.hxx index d6b88d1d67b9..aec5442853b1 100644 --- a/lingucomponent/source/languageguessing/simpleguesser.hxx +++ b/lingucomponent/source/languageguessing/simpleguesser.hxx @@ -19,9 +19,7 @@ #ifndef INCLUDED_LINGUCOMPONENT_SOURCE_LANGUAGEGUESSING_SIMPLEGUESSER_HXX #define INCLUDED_LINGUCOMPONENT_SOURCE_LANGUAGEGUESSING_SIMPLEGUESSER_HXX -#include #include -#include #include #include "guess.hxx" diff --git a/lingucomponent/source/lingutil/lingutil.hxx b/lingucomponent/source/lingutil/lingutil.hxx index 984b5e2e8902..4c4fe15ec47f 100644 --- a/lingucomponent/source/lingutil/lingutil.hxx +++ b/lingucomponent/source/lingutil/lingutil.hxx @@ -20,9 +20,7 @@ #ifndef INCLUDED_LINGUCOMPONENT_SOURCE_LINGUTIL_LINGUTIL_HXX #define INCLUDED_LINGUCOMPONENT_SOURCE_LINGUTIL_LINGUTIL_HXX -#include #include -#include #include diff --git a/lingucomponent/source/numbertext/numbertext.cxx b/lingucomponent/source/numbertext/numbertext.cxx index f878a55f591c..79c8e6810041 100644 --- a/lingucomponent/source/numbertext/numbertext.cxx +++ b/lingucomponent/source/numbertext/numbertext.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include #include #include @@ -26,19 +25,15 @@ #include #include -#include #include #include #include -#include #include #include #include #include -#include - #include using namespace ::osl; diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 843dcfb28585..95b264157533 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -23,12 +23,9 @@ #include #include #include -#include #include #include -#include #include -#include #include #include #include @@ -38,14 +35,12 @@ #include #include "sspellimp.hxx" -#include +#include #include #include #include -#include #include #include -#include #include #include #include diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.hxx b/lingucomponent/source/spellcheck/spell/sspellimp.hxx index c4c002b9ead1..000f1756f5bc 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.hxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.hxx @@ -25,25 +25,22 @@ #include #include #include -#include -#include +#include #include #include #include -#include #include -#include #include +#include + using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::linguistic2; -class Hunspell; - class SpellChecker : public cppu::WeakImplHelper < diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx index 6fc64f781267..ca29cca2ac52 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx @@ -21,9 +21,6 @@ #include #include #include -#include -#include -#include #include #include #include @@ -34,19 +31,16 @@ #include #include #include -#include #include #include #include -#include #include #include #include "nthesimp.hxx" #include -#include #include "nthesdta.hxx" #include -- cgit