Kaydet (Commit) c329a1c1 authored tarafından Gabor Kelemen's avatar Gabor Kelemen Kaydeden (comit) Miklos Vajna

tdf#42949 Fix IWYU warnings in helpcompiler/

Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.

Change-Id: Ie7e20c77a8035c0ee4f0316966d163b9cd7d11f2
Reviewed-on: https://gerrit.libreoffice.org/73006
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
üst 69236a7a
---
assumeFilename: helpcompiler/source/HelpCompiler.cxx
blacklist:
helpcompiler/inc/HelpCompiler.hxx:
# Needed on WIN32
- o3tl/char16_t2wchar_t.hxx
helpcompiler/source/LuceneHelper.hxx:
# Better to keep the generic header, MSVC problem
- CLucene.h
helpcompiler/source/HelpIndexer.cxx:
# Better to keep the generic, details are order-sensitive
- CLucene.h
helpcompiler/source/HelpSearch.cxx:
# Better to keep the generic, details are order-sensitive
- CLucene.h
# Don't propose hxx -> h change in URE libs
- osl/thread.hxx
helpcompiler/source/HelpLinker.cxx:
# Needed on WIN32
- o3tl/char16_t2wchar_t.hxx
...@@ -10,19 +10,13 @@ ...@@ -10,19 +10,13 @@
#ifndef INCLUDED_HELPCOMPILER_INC_BASCODETAGGER_HXX #ifndef INCLUDED_HELPCOMPILER_INC_BASCODETAGGER_HXX
#define INCLUDED_HELPCOMPILER_INC_BASCODETAGGER_HXX #define INCLUDED_HELPCOMPILER_INC_BASCODETAGGER_HXX
#include <iostream>
#include <cstdlib>
#include <string>
#include <deque> #include <deque>
#include <memory> #include <memory>
#include <vector> #include <vector>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h> #include <libxml/parser.h>
#include <rtl/ustring.hxx>
#include <comphelper/syntaxhighlight.hxx> #include <comphelper/syntaxhighlight.hxx>
#include <helpcompiler/dllapi.h> #include <helpcompiler/dllapi.h>
class BasicCodeTagger;
class LibXmlTreeWalker; class LibXmlTreeWalker;
//!Tagger class. //!Tagger class.
......
...@@ -22,29 +22,20 @@ ...@@ -22,29 +22,20 @@
#include <sal/config.h> #include <sal/config.h>
#include <deque>
#include <memory>
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
#include <list>
#include <fstream> #include <libxml/parser.h>
#include <sstream>
#include <algorithm>
#include <libxml/xmlmemory.h>
#include <libxml/debugXML.h>
#include <libxml/HTMLtree.h>
#include <libxml/xmlIO.h>
#include <libxml/xinclude.h>
#include <libxml/catalog.h>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <rtl/character.hxx> #include <rtl/character.hxx>
#include <osl/thread.h>
#include <osl/process.h> #include <osl/process.h>
#include <osl/file.hxx> #include <osl/file.hxx>
#include <o3tl/char16_t2wchar_t.hxx> #include <o3tl/char16_t2wchar_t.hxx>
#include "BasCodeTagger.hxx"
#include <helpcompiler/compilehelp.hxx> #include <helpcompiler/compilehelp.hxx>
#if OSL_DEBUG_LEVEL > 2 #if OSL_DEBUG_LEVEL > 2
......
...@@ -21,8 +21,10 @@ ...@@ -21,8 +21,10 @@
#define INCLUDED_HELPCOMPILER_INC_HELPLINKER_HXX #define INCLUDED_HELPCOMPILER_INC_HELPLINKER_HXX
#include <memory> #include <memory>
#include <vector>
#include <helpcompiler/dllapi.h> #include <helpcompiler/dllapi.h>
#include <libxslt/transform.h> #include "HelpCompiler.hxx"
#include <libxslt/xsltInternals.h>
#ifdef AIX #ifdef AIX
# undef _THREAD_SAFE # undef _THREAD_SAFE
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <BasCodeTagger.hxx> #include <BasCodeTagger.hxx>
#include <iostream>
LibXmlTreeWalker::LibXmlTreeWalker( xmlDocPtr doc ) LibXmlTreeWalker::LibXmlTreeWalker( xmlDocPtr doc )
{ {
......
...@@ -18,16 +18,15 @@ ...@@ -18,16 +18,15 @@
*/ */
#include <algorithm>
#include <memory> #include <memory>
#include <HelpCompiler.hxx> #include <HelpCompiler.hxx>
#include <BasCodeTagger.hxx> #include <BasCodeTagger.hxx>
#include <limits.h> #include <iostream>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <libxslt/xslt.h>
#include <libxslt/xsltInternals.h> #include <libxslt/xsltInternals.h>
#include <libxslt/transform.h> #include <libxslt/transform.h>
#include <libxslt/xsltutils.h>
#include <osl/thread.hxx> #include <osl/thread.hxx>
#include <chrono> #include <chrono>
#include <rtl/character.hxx> #include <rtl/character.hxx>
......
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
#include <rtl/string.hxx> #include <rtl/string.hxx>
#include <rtl/uri.hxx> #include <rtl/uri.hxx>
#include <rtl/ustrbuf.hxx>
#include <o3tl/runtimetooustring.hxx> #include <o3tl/runtimetooustring.hxx>
#include <osl/file.hxx> #include <osl/file.hxx>
#include <osl/thread.h> #include <osl/thread.h>
#include <algorithm>
#include <memory> #include <memory>
#include "LuceneHelper.hxx" #include "LuceneHelper.hxx"
#include <CLucene.h>
#include <CLucene/analysis/LanguageBasedAnalyzer.h>
using namespace lucene::document; using namespace lucene::document;
......
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
#include <string> #include <string>
#include <iostream> #include <iostream>
#include "LuceneHelper.hxx"
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
try try
......
...@@ -20,20 +20,14 @@ ...@@ -20,20 +20,14 @@
#include <HelpCompiler.hxx> #include <HelpCompiler.hxx>
#include <HelpLinker.hxx> #include <HelpLinker.hxx>
#include <map> #include <algorithm>
#include <fstream>
#include <string.h> #include <string.h>
#include <limits.h>
#include <libxslt/xslt.h> #include <libxslt/transform.h>
#include <libxslt/xsltutils.h>
#include <libxslt/functions.h>
#include <libxslt/extensions.h>
#include <sal/main.h>
#include <sal/types.h> #include <sal/types.h>
#include <osl/time.h>
#include <rtl/bootstrap.hxx>
#include <o3tl/char16_t2wchar_t.hxx> #include <o3tl/char16_t2wchar_t.hxx>
#include <sal/log.hxx> #include <sal/log.hxx>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <osl/thread.hxx> #include <osl/thread.hxx>
#include "LuceneHelper.hxx" #include "LuceneHelper.hxx"
#include <CLucene.h>
HelpSearch::HelpSearch(OUString const &indexDir) HelpSearch::HelpSearch(OUString const &indexDir)
{ {
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#endif #endif
#include <CLucene.h> #include <CLucene.h>
#include <CLucene/analysis/LanguageBasedAnalyzer.h>
#if defined(__GNUC__) #if defined(__GNUC__)
# pragma GCC visibility pop # pragma GCC visibility pop
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment