summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2022-01-20 20:54:56 +0100
committerThorsten Behrens <thorsten.behrens@allotropia.de>2022-01-27 18:52:16 +0100
commit67478f9d637096781c9e3df64896b1ddaccc331b (patch)
tree09fde17b999d48faba4938ad6c1accccc79af38b /idl
parentc73670326ce5b571c31d43721729a05a11563b01 (diff)
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 <thorsten.behrens@allotropia.de>
Diffstat (limited to 'idl')
-rw-r--r--idl/IwyuFilter_idl.yaml2
-rw-r--r--idl/inc/basobj.hxx1
-rw-r--r--idl/inc/bastype.hxx2
-rw-r--r--idl/inc/hash.hxx3
-rw-r--r--idl/inc/module.hxx1
-rw-r--r--idl/inc/object.hxx4
-rw-r--r--idl/inc/slot.hxx3
-rw-r--r--idl/inc/types.hxx1
-rw-r--r--idl/source/cmptools/hash.cxx5
-rw-r--r--idl/source/objects/basobj.cxx2
-rw-r--r--idl/source/objects/bastype.cxx3
-rw-r--r--idl/source/objects/module.cxx2
-rw-r--r--idl/source/objects/object.cxx2
-rw-r--r--idl/source/objects/slot.cxx1
-rw-r--r--idl/source/prj/command.cxx1
-rw-r--r--idl/source/prj/database.cxx3
-rw-r--r--idl/source/prj/globals.cxx2
-rw-r--r--idl/source/prj/parser.cxx1
-rw-r--r--idl/source/prj/svidl.cxx2
19 files changed, 13 insertions, 28 deletions
diff --git a/idl/IwyuFilter_idl.yaml b/idl/IwyuFilter_idl.yaml
new file mode 100644
index 000000000000..ea0464ad3624
--- /dev/null
+++ b/idl/IwyuFilter_idl.yaml
@@ -0,0 +1,2 @@
+---
+assumeFilename: idl/source/objects/object.cxx
diff --git a/idl/inc/basobj.hxx b/idl/inc/basobj.hxx
index 12def9b70942..2bdd8e622e44 100644
--- a/idl/inc/basobj.hxx
+++ b/idl/inc/basobj.hxx
@@ -22,7 +22,6 @@
#include <tools/ref.hxx>
#include "bastype.hxx"
-#include <functional>
#include <vector>
class SvTokenStream;
diff --git a/idl/inc/bastype.hxx b/idl/inc/bastype.hxx
index 1c0d93765e2e..7494b35a8813 100644
--- a/idl/inc/bastype.hxx
+++ b/idl/inc/bastype.hxx
@@ -22,7 +22,7 @@
#include <sal/types.h>
-#include <tools/globname.hxx>
+#include <rtl/string.hxx>
class SvStringHashEntry;
class SvIdlDataBase;
diff --git a/idl/inc/hash.hxx b/idl/inc/hash.hxx
index 67b18b34badb..150c604ff9d4 100644
--- a/idl/inc/hash.hxx
+++ b/idl/inc/hash.hxx
@@ -20,8 +20,7 @@
#ifndef INCLUDED_IDL_INC_HASH_HXX
#define INCLUDED_IDL_INC_HASH_HXX
-#include <rtl/ustring.hxx>
-#include <tools/ref.hxx>
+#include <rtl/string.hxx>
#include <tools/solar.h>
#include <unordered_map>
#include <memory>
diff --git a/idl/inc/module.hxx b/idl/inc/module.hxx
index 05587ee9681e..08c14cc9c2b2 100644
--- a/idl/inc/module.hxx
+++ b/idl/inc/module.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_IDL_INC_MODULE_HXX
#define INCLUDED_IDL_INC_MODULE_HXX
-#include "slot.hxx"
#include "object.hxx"
class SvMetaModule final : public SvMetaObject
diff --git a/idl/inc/object.hxx b/idl/inc/object.hxx
index 6beb837688c2..8d16ca563c74 100644
--- a/idl/inc/object.hxx
+++ b/idl/inc/object.hxx
@@ -21,7 +21,9 @@
#define INCLUDED_IDL_INC_OBJECT_HXX
#include "types.hxx"
-#include "slot.hxx"
+
+#include <tools/solar.h>
+
#include <vector>
class SvMetaClass;
diff --git a/idl/inc/slot.hxx b/idl/inc/slot.hxx
index 1b8eec2ab66a..f8ba61d98fa3 100644
--- a/idl/inc/slot.hxx
+++ b/idl/inc/slot.hxx
@@ -21,7 +21,8 @@
#define INCLUDED_IDL_INC_SLOT_HXX
#include "types.hxx"
-#include "command.hxx"
+
+#include <tools/solar.h>
class SvMetaSlot : public SvMetaAttribute
{
diff --git a/idl/inc/types.hxx b/idl/inc/types.hxx
index 1648efc3d56a..badab618e605 100644
--- a/idl/inc/types.hxx
+++ b/idl/inc/types.hxx
@@ -21,7 +21,6 @@
#define INCLUDED_IDL_INC_TYPES_HXX
#include <rtl/strbuf.hxx>
-#include <tools/solar.h>
#include <tools/ref.hxx>
#include "basobj.hxx"
diff --git a/idl/source/cmptools/hash.cxx b/idl/source/cmptools/hash.cxx
index c294a1c14755..d3993881a6ba 100644
--- a/idl/source/cmptools/hash.cxx
+++ b/idl/source/cmptools/hash.cxx
@@ -18,14 +18,9 @@
*/
-// C and C++ includes
-#include <stdlib.h>
-
// program-sensitive includes
#include <hash.hxx>
-#include <rtl/character.hxx>
-
SvStringHashEntry * SvStringHashTable::Insert( const OString& rElement, sal_uInt32 * pInsertPos )
{
auto it = maString2IntMap.find(rElement);
diff --git a/idl/source/objects/basobj.cxx b/idl/source/objects/basobj.cxx
index 551e002d046a..872b42b391ed 100644
--- a/idl/source/objects/basobj.cxx
+++ b/idl/source/objects/basobj.cxx
@@ -22,8 +22,6 @@
#include <rtl/character.hxx>
#include <basobj.hxx>
-#include <module.hxx>
-#include <globals.hxx>
#include <database.hxx>
void SvMetaObject::WriteTab( SvStream & rOutStm, sal_uInt16 nTab )
diff --git a/idl/source/objects/bastype.cxx b/idl/source/objects/bastype.cxx
index c68fa513ef0f..6a36db617f54 100644
--- a/idl/source/objects/bastype.cxx
+++ b/idl/source/objects/bastype.cxx
@@ -18,13 +18,10 @@
*/
-#include <limits.h>
#include <bastype.hxx>
#include <lex.hxx>
-#include <globals.hxx>
#include <hash.hxx>
#include <database.hxx>
-#include <tools/stream.hxx>
bool SvBOOL::ReadSvIdl( SvStringHashEntry const * pName, SvTokenStream & rInStm )
{
diff --git a/idl/source/objects/module.cxx b/idl/source/objects/module.cxx
index e97dd29d651c..dc692f6081c6 100644
--- a/idl/source/objects/module.cxx
+++ b/idl/source/objects/module.cxx
@@ -18,9 +18,7 @@
*/
#include <module.hxx>
-#include <globals.hxx>
#include <database.hxx>
-#include <osl/file.hxx>
SvMetaModule::SvMetaModule() {}
diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx
index 6fc0a5e0af7c..510d3a8a791d 100644
--- a/idl/source/objects/object.cxx
+++ b/idl/source/objects/object.cxx
@@ -22,12 +22,12 @@
#include <algorithm>
#include <rtl/strbuf.hxx>
-#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <object.hxx>
#include <globals.hxx>
#include <database.hxx>
+#include <slot.hxx>
SvClassElement::SvClassElement()
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx
index 6b4c65a1bcac..17b8970edc8a 100644
--- a/idl/source/objects/slot.cxx
+++ b/idl/source/objects/slot.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <rtl/strbuf.hxx>
#include <osl/diagnose.h>
#include <tools/debug.hxx>
#include <slot.hxx>
diff --git a/idl/source/prj/command.cxx b/idl/source/prj/command.cxx
index b665d792d8bb..15d08d99d39c 100644
--- a/idl/source/prj/command.cxx
+++ b/idl/source/prj/command.cxx
@@ -21,7 +21,6 @@
#include <stdlib.h>
#include <stdio.h>
-#include <string.h>
#include <osl/diagnose.h>
#include <rtl/character.hxx>
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx
index 4b0a58424558..9aba715edaf4 100644
--- a/idl/source/prj/database.cxx
+++ b/idl/source/prj/database.cxx
@@ -21,11 +21,12 @@
#include <algorithm>
#include <stdio.h>
-#include <stdlib.h>
#include <string_view>
+#include <command.hxx>
#include <database.hxx>
#include <globals.hxx>
+#include <slot.hxx>
#include <rtl/strbuf.hxx>
#include <osl/file.hxx>
diff --git a/idl/source/prj/globals.cxx b/idl/source/prj/globals.cxx
index 3e8160ac13ef..cf8d2ad44dcf 100644
--- a/idl/source/prj/globals.cxx
+++ b/idl/source/prj/globals.cxx
@@ -18,10 +18,8 @@
*/
#include <sal/config.h>
-#include <rtl/instance.hxx>
#include <globals.hxx>
-#include <database.hxx>
IdlDll & GetIdlApp()
{
diff --git a/idl/source/prj/parser.cxx b/idl/source/prj/parser.cxx
index 28652c736c39..3e53e9d35d93 100644
--- a/idl/source/prj/parser.cxx
+++ b/idl/source/prj/parser.cxx
@@ -24,6 +24,7 @@
#include <parser.hxx>
#include <database.hxx>
#include <globals.hxx>
+#include <slot.hxx>
#include <osl/file.hxx>
void SvIdlParser::ReadSvIdl( const OUString & rPath )
diff --git a/idl/source/prj/svidl.cxx b/idl/source/prj/svidl.cxx
index 91ad73d19336..efc6bf2946df 100644
--- a/idl/source/prj/svidl.cxx
+++ b/idl/source/prj/svidl.cxx
@@ -18,10 +18,8 @@
*/
-#include <stdlib.h>
#include <stdio.h>
#include <database.hxx>
-#include <globals.hxx>
#include <command.hxx>
#include <rtl/ustring.hxx>
#include <osl/file.hxx>