summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2021-12-16 20:59:35 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-12-20 10:06:34 +0100
commit807f238f12e0774fabf507a17ca0ba9204d47833 (patch)
tree37f51c4539aa07ce707dcf81d2e9dc4e16186d15 /include
parent309c8bd4fc5cc7034754b90d6306bbe4084be4d9 (diff)
Recheck include/[e-r]* with IWYU
See tdf#42949 for motivation Change-Id: I44e4e3a88067c1c29ce9d563b22741e984b43576 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126964 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/IwyuFilter_include.yaml7
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitTypes.h2
-rw-r--r--include/editeng/editund2.hxx1
-rw-r--r--include/editeng/editview.hxx1
-rw-r--r--include/editeng/overflowingtxt.hxx2
-rw-r--r--include/editeng/txtrange.hxx1
-rw-r--r--include/editeng/unoforou.hxx1
-rw-r--r--include/editeng/unoipset.hxx1
-rw-r--r--include/editeng/unonames.hxx2
-rw-r--r--include/editeng/xmlcnitm.hxx1
-rw-r--r--include/formula/errorcodes.hxx2
-rw-r--r--include/linguistic/lngprops.hxx2
-rw-r--r--include/o3tl/cow_wrapper.hxx1
-rw-r--r--include/o3tl/hash_combine.hxx4
-rw-r--r--include/o3tl/string_view.hxx1
-rw-r--r--include/oox/core/fragmenthandler2.hxx2
-rw-r--r--include/oox/drawingml/drawingmltypes.hxx1
-rw-r--r--include/oox/export/drawingml.hxx1
-rw-r--r--include/oox/export/utils.hxx2
-rw-r--r--include/oox/ppt/pptimport.hxx1
-rw-r--r--include/oox/shape/ShapeContextHandler.hxx2
-rw-r--r--include/oox/shape/ShapeFilterBase.hxx1
22 files changed, 20 insertions, 19 deletions
diff --git a/include/IwyuFilter_include.yaml b/include/IwyuFilter_include.yaml
index d608a87768d8..f56ed368c98b 100644
--- a/include/IwyuFilter_include.yaml
+++ b/include/IwyuFilter_include.yaml
@@ -43,6 +43,10 @@ excludelist:
include/android/compatibility.hxx:
# TODO check whether actually needed, just silence this for now
- math.h
+ include/LibreOfficeKit/LibreOfficeKit.h:
+ # the unstable API needs C99's bool
+ - stdbool.h
+ - stdint.h
include/sfx2/toolbarids.hxx:
# needed for enum definition
- sal/types.h
@@ -233,6 +237,9 @@ excludelist:
include/o3tl/make_shared.hxx:
# Needed for __COVERITY__
- o3tl/deleter.hxx
+ include/o3tl/safeint.hxx:
+ # Needed for std::min
+ - algorithm
include/sot/exchange.hxx:
# Used in a macro #define
- com/sun/star/datatransfer/dnd/DNDConstants.hpp
diff --git a/include/LibreOfficeKit/LibreOfficeKitTypes.h b/include/LibreOfficeKit/LibreOfficeKitTypes.h
index 5f4e3d4d870f..8513ef75421d 100644
--- a/include/LibreOfficeKit/LibreOfficeKitTypes.h
+++ b/include/LibreOfficeKit/LibreOfficeKitTypes.h
@@ -10,8 +10,6 @@
#ifndef INCLUDED_LIBREOFFICEKIT_LIBREOFFICEKIT_TYPES_H
#define INCLUDED_LIBREOFFICEKIT_LIBREOFFICEKIT_TYPES_H
-#include <stddef.h>
-
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/include/editeng/editund2.hxx b/include/editeng/editund2.hxx
index fb8d66b99443..3f6975a3a2e8 100644
--- a/include/editeng/editund2.hxx
+++ b/include/editeng/editund2.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_EDITENG_EDITUND2_HXX
#define INCLUDED_EDITENG_EDITUND2_HXX
-#include <config_options.h>
#include <editeng/editengdllapi.h>
#include <svl/undo.hxx>
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx
index 8332e516915d..f610f5ee6bf5 100644
--- a/include/editeng/editview.hxx
+++ b/include/editeng/editview.hxx
@@ -20,7 +20,6 @@
#ifndef INCLUDED_EDITENG_EDITVIEW_HXX
#define INCLUDED_EDITENG_EDITVIEW_HXX
-#include <config_options.h>
#include <memory>
#include <com/sun/star/i18n/WordType.hpp>
diff --git a/include/editeng/overflowingtxt.hxx b/include/editeng/overflowingtxt.hxx
index 1c11c7797d00..031b4d82d9d5 100644
--- a/include/editeng/overflowingtxt.hxx
+++ b/include/editeng/overflowingtxt.hxx
@@ -20,12 +20,10 @@
#ifndef INCLUDED_EDITENG_OVERFLOWINGTXT_HXX
#define INCLUDED_EDITENG_OVERFLOWINGTXT_HXX
-#include <config_options.h>
#include <editeng/editengdllapi.h>
#include <editeng/editdata.hxx>
#include <com/sun/star/uno/Reference.h>
-#include <memory>
#include <optional>
namespace com::sun::star {
diff --git a/include/editeng/txtrange.hxx b/include/editeng/txtrange.hxx
index ab6be6d283a2..c6661f687dad 100644
--- a/include/editeng/txtrange.hxx
+++ b/include/editeng/txtrange.hxx
@@ -24,7 +24,6 @@
#include <tools/gen.hxx>
#include <tools/poly.hxx>
#include <deque>
-#include <memory>
#include <optional>
namespace basegfx {
diff --git a/include/editeng/unoforou.hxx b/include/editeng/unoforou.hxx
index bbc92541735c..a4535d83bf77 100644
--- a/include/editeng/unoforou.hxx
+++ b/include/editeng/unoforou.hxx
@@ -24,7 +24,6 @@
#include <editeng/editengdllapi.h>
#include <editeng/editdata.hxx>
#include <svl/itemset.hxx>
-#include <memory>
#include <optional>
class Outliner;
diff --git a/include/editeng/unoipset.hxx b/include/editeng/unoipset.hxx
index b4ea97f6cb28..5a0ac105c176 100644
--- a/include/editeng/unoipset.hxx
+++ b/include/editeng/unoipset.hxx
@@ -22,7 +22,6 @@
#include <editeng/editengdllapi.h>
#include <svl/itemprop.hxx>
-#include <memory>
#include <vector>
namespace com::sun::star::beans { class XPropertySetInfo; }
diff --git a/include/editeng/unonames.hxx b/include/editeng/unonames.hxx
index 29bb46a97c3d..2e5b44e1ad88 100644
--- a/include/editeng/unonames.hxx
+++ b/include/editeng/unonames.hxx
@@ -10,6 +10,8 @@
#ifndef INCLUDED_EDITENG_UNONAMES_HXX
#define INCLUDED_EDITENG_UNONAMES_HXX
+#include <rtl/ustring.hxx>
+
// Common across fields
inline constexpr OUStringLiteral UNO_TC_PROP_ANCHOR = u"Anchor";
inline constexpr OUStringLiteral UNO_TC_PROP_TEXTFIELD_TYPE = u"TextFieldType";
diff --git a/include/editeng/xmlcnitm.hxx b/include/editeng/xmlcnitm.hxx
index f3b44e062e00..a0ee0a63fb55 100644
--- a/include/editeng/xmlcnitm.hxx
+++ b/include/editeng/xmlcnitm.hxx
@@ -22,7 +22,6 @@
#include <svl/poolitem.hxx>
#include <editeng/editengdllapi.h>
-#include <memory>
#include <xmloff/xmlcnimp.hxx>
diff --git a/include/formula/errorcodes.hxx b/include/formula/errorcodes.hxx
index 1a96a0c70223..3e929bff49e8 100644
--- a/include/formula/errorcodes.hxx
+++ b/include/formula/errorcodes.hxx
@@ -20,10 +20,10 @@
#ifndef INCLUDED_FORMULA_ERRORCODES_HXX
#define INCLUDED_FORMULA_ERRORCODES_HXX
-#include <rtl/math.hxx>
#include <sal/mathconf.h>
#include <sal/types.h>
+#include <cmath>
#include <limits>
// Store as 16-bits, since error values are stored in tokens and formula results,
diff --git a/include/linguistic/lngprops.hxx b/include/linguistic/lngprops.hxx
index 62a72f34b5aa..2c3dc1d901f1 100644
--- a/include/linguistic/lngprops.hxx
+++ b/include/linguistic/lngprops.hxx
@@ -20,6 +20,8 @@
#ifndef INCLUDED_LINGUISTIC_LNGPROPS_HXX
#define INCLUDED_LINGUISTIC_LNGPROPS_HXX
+#include <rtl/ustring.hxx>
+
// maximal number of suggestions to be returned in spelling context-menu
// (may not include results added by looking up user dictionaries)
inline constexpr OUStringLiteral UPN_MAX_NUMBER_OF_SUGGESTIONS = u"MaxNumberOfSuggestions";
diff --git a/include/o3tl/cow_wrapper.hxx b/include/o3tl/cow_wrapper.hxx
index ced27c1fda32..cc823f60ec57 100644
--- a/include/o3tl/cow_wrapper.hxx
+++ b/include/o3tl/cow_wrapper.hxx
@@ -23,7 +23,6 @@
#include <osl/interlck.h>
#include <optional>
-#include <utility>
#include <cstddef>
namespace o3tl
diff --git a/include/o3tl/hash_combine.hxx b/include/o3tl/hash_combine.hxx
index f56beda62672..48e14262228e 100644
--- a/include/o3tl/hash_combine.hxx
+++ b/include/o3tl/hash_combine.hxx
@@ -9,6 +9,10 @@
#pragma once
+#include <cstddef>
+#include <functional>
+#include <type_traits>
+
namespace o3tl
{
template <typename T, typename N>
diff --git a/include/o3tl/string_view.hxx b/include/o3tl/string_view.hxx
index 4cb9790900f6..0ca26a829932 100644
--- a/include/o3tl/string_view.hxx
+++ b/include/o3tl/string_view.hxx
@@ -15,7 +15,6 @@
#include <cstddef>
#include <string>
#include <string_view>
-#include <type_traits>
#include <rtl/ustring.h>
diff --git a/include/oox/core/fragmenthandler2.hxx b/include/oox/core/fragmenthandler2.hxx
index 598426ee681e..05b2b2d0bef3 100644
--- a/include/oox/core/fragmenthandler2.hxx
+++ b/include/oox/core/fragmenthandler2.hxx
@@ -20,8 +20,6 @@
#ifndef INCLUDED_OOX_CORE_FRAGMENTHANDLER2_HXX
#define INCLUDED_OOX_CORE_FRAGMENTHANDLER2_HXX
-#include <vector>
-
#include <com/sun/star/uno/Reference.hxx>
#include <oox/core/contexthandler.hxx>
#include <oox/core/contexthandler2.hxx>
diff --git a/include/oox/drawingml/drawingmltypes.hxx b/include/oox/drawingml/drawingmltypes.hxx
index 4350b8d033a7..7f7aab4ef7d1 100644
--- a/include/oox/drawingml/drawingmltypes.hxx
+++ b/include/oox/drawingml/drawingmltypes.hxx
@@ -32,7 +32,6 @@
#include <com/sun/star/uno/Reference.hxx>
#include <o3tl/unit_conversion.hxx>
#include <oox/dllapi.h>
-#include <oox/helper/helper.hxx>
#include <rtl/ustring.hxx>
#include <sal/types.h>
diff --git a/include/oox/export/drawingml.hxx b/include/oox/export/drawingml.hxx
index b71490752708..eb1da4a61f8e 100644
--- a/include/oox/export/drawingml.hxx
+++ b/include/oox/export/drawingml.hxx
@@ -42,6 +42,7 @@
#include <svx/msdffdef.hxx>
#include <vcl/checksum.hxx>
#include <tools/gen.hxx>
+#include <tools/color.hxx>
#include <vcl/mapmod.hxx>
class Graphic;
diff --git a/include/oox/export/utils.hxx b/include/oox/export/utils.hxx
index 1a9a790d2182..00fd953a04e7 100644
--- a/include/oox/export/utils.hxx
+++ b/include/oox/export/utils.hxx
@@ -26,6 +26,8 @@
#include <rtl/string.hxx>
#include <sal/types.h>
+#include <cmath>
+
inline OString I32SHEX(sal_Int32 x)
{
OString aStr = OString::number(x, 16);
diff --git a/include/oox/ppt/pptimport.hxx b/include/oox/ppt/pptimport.hxx
index 29ef3c5732a6..3b81f26ec5e8 100644
--- a/include/oox/ppt/pptimport.hxx
+++ b/include/oox/ppt/pptimport.hxx
@@ -31,7 +31,6 @@
#include <oox/drawingml/drawingmltypes.hxx>
#include <oox/drawingml/theme.hxx>
#include <oox/ppt/slidepersist.hxx>
-#include <oox/ppt/pptshape.hxx>
#include <rtl/ustring.hxx>
#include <sal/types.h>
diff --git a/include/oox/shape/ShapeContextHandler.hxx b/include/oox/shape/ShapeContextHandler.hxx
index dadaf7f64cb3..934ea374fd7c 100644
--- a/include/oox/shape/ShapeContextHandler.hxx
+++ b/include/oox/shape/ShapeContextHandler.hxx
@@ -23,8 +23,6 @@
#include <oox/drawingml/graphicshapecontext.hxx>
#include <oox/core/fragmenthandler2.hxx>
#include <oox/core/xmlfilterbase.hxx>
-#include <com/sun/star/uno/XComponentContext.hpp>
-#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/graphic/XGraphicMapper.hpp>
#include <com/sun/star/drawing/XDrawPage.hpp>
diff --git a/include/oox/shape/ShapeFilterBase.hxx b/include/oox/shape/ShapeFilterBase.hxx
index 5ae3b20c711d..4b6153a58d2f 100644
--- a/include/oox/shape/ShapeFilterBase.hxx
+++ b/include/oox/shape/ShapeFilterBase.hxx
@@ -27,6 +27,7 @@
#include <oox/drawingml/drawingmltypes.hxx>
#include <com/sun/star/graphic/XGraphicMapper.hpp>
#include <rtl/ref.hxx>
+#include <tools/color.hxx>
namespace oox::drawingml::table {