Kaydet (Commit) 5af52425 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: fix some IWYU warnings

Change-Id: Ic7e6aa31e5c6d210101da7223a294092ab5b7481
Reviewed-on: https://gerrit.libreoffice.org/62334
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 8f71eb51
...@@ -169,6 +169,9 @@ def processIWYUOutput(iwyuOutput, moduleRules): ...@@ -169,6 +169,9 @@ def processIWYUOutput(iwyuOutput, moduleRules):
match = re.match("- (.*;(?: })*)* // lines (.*)-.*", line) match = re.match("- (.*;(?: })*)* // lines (.*)-.*", line)
if match: if match:
fwdDecl = match.group(1) fwdDecl = match.group(1)
if fwdDecl.endswith(";"):
# Remove trailing semicolon.
fwdDecl = fwdDecl[:-1]
lineno = match.group(2) lineno = match.group(2)
if not ignoreRemoval(fwdDecl, toAdd, currentFileName, moduleRules): if not ignoreRemoval(fwdDecl, toAdd, currentFileName, moduleRules):
toRemove.append("%s:%s: %s" % (currentFileName, lineno, fwdDecl)) toRemove.append("%s:%s: %s" % (currentFileName, lineno, fwdDecl))
......
...@@ -17,6 +17,8 @@ blacklist: ...@@ -17,6 +17,8 @@ blacklist:
- numrule.hxx - numrule.hxx
# tox.hxx brings in SwTOXType, which is needed by SwTOXTypes, as SwVectorModifyBase's dtor wants to delete it # tox.hxx brings in SwTOXType, which is needed by SwTOXTypes, as SwVectorModifyBase's dtor wants to delete it
- tox.hxx - tox.hxx
# section.hxx brings in SwSectionFormat, which is needed by SwSectionFormats, as SwFormatsModifyBase's type param has to be complete
- section.hxx
sw/inc/docfac.hxx: sw/inc/docfac.hxx:
# Complete type is needed by rtl::Reference<SwDoc>. # Complete type is needed by rtl::Reference<SwDoc>.
- doc.hxx - doc.hxx
...@@ -36,6 +38,8 @@ blacklist: ...@@ -36,6 +38,8 @@ blacklist:
- o3tl/typed_flags_set.hxx - o3tl/typed_flags_set.hxx
sw/inc/doc.hxx: sw/inc/doc.hxx:
- o3tl/deleter.hxx - o3tl/deleter.hxx
sw/inc/docsh.hxx:
- o3tl/deleter.hxx
sw/inc/list.hxx: sw/inc/list.hxx:
- o3tl/deleter.hxx - o3tl/deleter.hxx
sw/inc/IDocumentLinksAdministration.hxx: sw/inc/IDocumentLinksAdministration.hxx:
...@@ -56,6 +60,8 @@ blacklist: ...@@ -56,6 +60,8 @@ blacklist:
- o3tl/typed_flags_set.hxx - o3tl/typed_flags_set.hxx
sw/inc/undobj.hxx: sw/inc/undobj.hxx:
- o3tl/typed_flags_set.hxx - o3tl/typed_flags_set.hxx
sw/inc/itabenum.hxx:
- o3tl/typed_flags_set.hxx
sw/inc/unosett.hxx: sw/inc/unosett.hxx:
# sw::UnoImplPtr typedef # sw::UnoImplPtr typedef
- unobaseclass.hxx - unobaseclass.hxx
...@@ -240,6 +246,7 @@ blacklist: ...@@ -240,6 +246,7 @@ blacklist:
- class SwUpdateAttr - class SwUpdateAttr
- class SfxBoolItem - class SfxBoolItem
- class SvxCharSetColorItem - class SvxCharSetColorItem
- class SvxColorItem
# used in extern declaration # used in extern declaration
- struct SfxItemInfo - struct SfxItemInfo
sw/inc/textboxhelper.hxx: sw/inc/textboxhelper.hxx:
...@@ -252,3 +259,8 @@ blacklist: ...@@ -252,3 +259,8 @@ blacklist:
# complete type is wanted # complete type is wanted
- com/sun/star/awt/XBitmap.hpp - com/sun/star/awt/XBitmap.hpp
- com/sun/star/text/XTextColumns.hpp - com/sun/star/text/XTextColumns.hpp
sw/inc/pagepreviewlayout.hxx:
- vector
sw/inc/shellio.hxx:
- o3tl/deleter.hxx
- o3tl/typed_flags_set.hxx
...@@ -20,17 +20,18 @@ ...@@ -20,17 +20,18 @@
#ifndef INCLUDED_SW_INC_CALBCK_HXX #ifndef INCLUDED_SW_INC_CALBCK_HXX
#define INCLUDED_SW_INC_CALBCK_HXX #define INCLUDED_SW_INC_CALBCK_HXX
#include <cassert>
#include <svl/hint.hxx> #include <svl/hint.hxx>
#include <svl/broadcast.hxx> #include <svl/broadcast.hxx>
#include <svl/poolitem.hxx>
#include "swdllapi.h" #include "swdllapi.h"
#include "ring.hxx" #include "ring.hxx"
#include "hintids.hxx"
#include <type_traits> #include <type_traits>
#include <vector> #include <vector>
#include <memory> #include <memory>
class SwModify; class SwModify;
class SfxPoolItem;
/* /*
SwModify and SwClient cooperate in propagating attribute changes. SwModify and SwClient cooperate in propagating attribute changes.
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <svl/zforlist.hxx> #include <svl/zforlist.hxx>
#include "swdllapi.h" #include "swdllapi.h"
#include "format.hxx" #include "format.hxx"
#include "hintids.hxx"
#include "cellfml.hxx" #include "cellfml.hxx"
/** The number formatter's default locale's @ Text format. /** The number formatter's default locale's @ Text format.
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#define INCLUDED_SW_INC_CHARFMT_HXX #define INCLUDED_SW_INC_CHARFMT_HXX
#include "format.hxx" #include "format.hxx"
#include "hintids.hxx"
class SW_DLLPUBLIC SwCharFormat : public SwFormat class SW_DLLPUBLIC SwCharFormat : public SwFormat
{ {
......
...@@ -41,7 +41,6 @@ class SwUndo; ...@@ -41,7 +41,6 @@ class SwUndo;
class SwRect; class SwRect;
class SwFrameFormat; class SwFrameFormat;
class SwFrameFormats; class SwFrameFormats;
class SwNodes;
class SwNumRuleTable; class SwNumRuleTable;
class SwNumRule; class SwNumRule;
class SwOutlineNodes; class SwOutlineNodes;
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#define INCLUDED_SW_INC_DBMGR_HXX #define INCLUDED_SW_INC_DBMGR_HXX
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <tools/link.hxx>
#include <tools/solar.h> #include <tools/solar.h>
#include <i18nlangtag/lang.h> #include <i18nlangtag/lang.h>
#include <com/sun/star/util/Date.hpp> #include <com/sun/star/util/Date.hpp>
...@@ -30,7 +29,6 @@ ...@@ -30,7 +29,6 @@
#include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/lang/Locale.hpp> #include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/beans/PropertyValue.hpp>
#include <vcl/weld.hxx>
#include <memory> #include <memory>
#include <vector> #include <vector>
...@@ -77,7 +75,6 @@ namespace weld { ...@@ -77,7 +75,6 @@ namespace weld {
class SwView; class SwView;
class SwWrtShell; class SwWrtShell;
class ListBox; class ListBox;
class Button;
class SvNumberFormatter; class SvNumberFormatter;
class SwXMailMerge; class SwXMailMerge;
class SwMailMergeConfigItem; class SwMailMergeConfigItem;
......
...@@ -38,7 +38,6 @@ class SwFlyDrawObj; ...@@ -38,7 +38,6 @@ class SwFlyDrawObj;
class SwRect; class SwRect;
class SwDrawContact; class SwDrawContact;
struct SwPosition; struct SwPosition;
class SwIndex;
class SdrTextObj; class SdrTextObj;
class SwContact; class SwContact;
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include <boost/multi_index/ordered_index.hpp> #include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/random_access_index.hpp> #include <boost/multi_index/random_access_index.hpp>
#include "charfmt.hxx"
#include "fmtcol.hxx" #include "fmtcol.hxx"
#include "frmfmt.hxx" #include "frmfmt.hxx"
#include "section.hxx" #include "section.hxx"
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
#include <memory> #include <memory>
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include <com/sun/star/uno/Sequence.h> #include <com/sun/star/uno/Sequence.h>
#include <ooo/vba/XSinkCaller.hpp>
#include <ooo/vba/word/XDocument.hpp>
#include <sfx2/docfac.hxx> #include <sfx2/docfac.hxx>
#include <sfx2/objsh.hxx> #include <sfx2/objsh.hxx>
#include "swdllapi.h" #include "swdllapi.h"
...@@ -58,6 +56,8 @@ namespace svt ...@@ -58,6 +56,8 @@ namespace svt
class EmbeddedObjectRef; class EmbeddedObjectRef;
} }
namespace com { namespace sun { namespace star { namespace frame { class XController; } } } } namespace com { namespace sun { namespace star { namespace frame { class XController; } } } }
namespace ooo { namespace vba { class XSinkCaller; } }
namespace ooo { namespace vba { namespace word { class XDocument; } } }
// initialize DrawModel (in form of a SwDrawModel) and DocShell (in form of a SwDocShell) // initialize DrawModel (in form of a SwDrawModel) and DocShell (in form of a SwDocShell)
// as needed, one or both parameters may be zero // as needed, one or both parameters may be zero
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <cppuhelper/weakref.hxx> #include <cppuhelper/weakref.hxx>
#include <editeng/svxenum.hxx> #include <editeng/svxenum.hxx>
#include <vector> #include <vector>
#include <climits>
class SwDoc; class SwDoc;
class SvNumberFormatter; class SvNumberFormatter;
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "swdllapi.h" #include "swdllapi.h"
#include "format.hxx" #include "format.hxx"
#include "hintids.hxx"
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <vector> #include <vector>
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <cppuhelper/weakref.hxx> #include <cppuhelper/weakref.hxx>
#include <tools/gen.hxx> #include <tools/gen.hxx>
#include "format.hxx" #include "format.hxx"
#include "hintids.hxx"
#include "swdllapi.h" #include "swdllapi.h"
#include <list> #include <list>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "swdllapi.h" #include "swdllapi.h"
class SwView; class SwView;
namespace vcl { class Window; }
class SwWrtShell; class SwWrtShell;
struct SwConversionArgs; struct SwConversionArgs;
class SwPaM; class SwPaM;
......
...@@ -29,7 +29,6 @@ class SwAsyncRetrieveInputStreamThreadConsumer; ...@@ -29,7 +29,6 @@ class SwAsyncRetrieveInputStreamThreadConsumer;
class SwGrfFormatColl; class SwGrfFormatColl;
class SwDoc; class SwDoc;
namespace com { namespace sun { namespace star { namespace embed { class XStorage; } } } }
// SwGrfNode // SwGrfNode
class SW_DLLPUBLIC SwGrfNode: public SwNoTextNode class SW_DLLPUBLIC SwGrfNode: public SwNoTextNode
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include "swdllapi.h" #include "swdllapi.h"
#include "shellid.hxx" #include "shellid.hxx"
#include "fldupde.hxx" #include "fldupde.hxx"
#include <ooo/vba/XSinkCaller.hpp>
class Color; class Color;
class SfxItemSet; class SfxItemSet;
...@@ -69,6 +68,7 @@ namespace com{ namespace sun{ namespace star{ namespace scanner{ ...@@ -69,6 +68,7 @@ namespace com{ namespace sun{ namespace star{ namespace scanner{
}}}} }}}}
namespace com { namespace sun { namespace star { namespace linguistic2 { class XLanguageGuessing; } } } } namespace com { namespace sun { namespace star { namespace linguistic2 { class XLanguageGuessing; } } } }
namespace com { namespace sun { namespace star { namespace linguistic2 { class XLinguServiceEventListener; } } } } namespace com { namespace sun { namespace star { namespace linguistic2 { class XLinguServiceEventListener; } } } }
namespace ooo { namespace vba { class XSinkCaller; } }
class SW_DLLPUBLIC SwModule final : public SfxModule, public SfxListener, public utl::ConfigurationListener class SW_DLLPUBLIC SwModule final : public SfxModule, public SfxListener, public utl::ConfigurationListener
{ {
......
...@@ -19,10 +19,9 @@ ...@@ -19,10 +19,9 @@
#ifndef INCLUDED_SW_INC_TXTFTN_HXX #ifndef INCLUDED_SW_INC_TXTFTN_HXX
#define INCLUDED_SW_INC_TXTFTN_HXX #define INCLUDED_SW_INC_TXTFTN_HXX
#include <rtl/ustring.hxx>
#include "txatbase.hxx" #include "txatbase.hxx"
namespace rtl { class OUString; }
class SwNodeIndex; class SwNodeIndex;
class SwTextNode; class SwTextNode;
class SwNodes; class SwNodes;
......
...@@ -119,6 +119,7 @@ ...@@ -119,6 +119,7 @@
#include <com/sun/star/uri/UriReferenceFactory.hpp> #include <com/sun/star/uri/UriReferenceFactory.hpp>
#include <com/sun/star/uri/VndSunStarPkgUrlReferenceFactory.hpp> #include <com/sun/star/uri/VndSunStarPkgUrlReferenceFactory.hpp>
#include <com/sun/star/frame/XStorable.hpp> #include <com/sun/star/frame/XStorable.hpp>
#include <ooo/vba/XSinkCaller.hpp>
#include <unomid.h> #include <unomid.h>
#include <unotextrange.hxx> #include <unotextrange.hxx>
......
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
#include <com/sun/star/drawing/ModuleDispatcher.hpp> #include <com/sun/star/drawing/ModuleDispatcher.hpp>
#include <com/sun/star/frame/DispatchHelper.hpp> #include <com/sun/star/frame/DispatchHelper.hpp>
#include <ooo/vba/XSinkCaller.hpp>
#include <ooo/vba/word/XDocument.hpp>
#include <comphelper/fileformat.h> #include <comphelper/fileformat.h>
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
#include <sfx2/charmappopup.hxx> #include <sfx2/charmappopup.hxx>
#include <com/sun/star/scanner/ScannerManager.hpp> #include <com/sun/star/scanner/ScannerManager.hpp>
#include <com/sun/star/linguistic2/LanguageGuessing.hpp> #include <com/sun/star/linguistic2/LanguageGuessing.hpp>
#include <ooo/vba/XSinkCaller.hpp>
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
#include <docsh.hxx> #include <docsh.hxx>
#include <swmodule.hxx> #include <swmodule.hxx>
......
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