summaryrefslogtreecommitdiff
path: root/sw/IwyuFilter_sw.yaml
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-04-03 09:20:57 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-04-07 13:57:01 +0200
commitb5ede834dece9e5ece3e525f610912984c60661b (patch)
tree93d765b2f4f16f22a2562fe27c31e71f4d947f32 /sw/IwyuFilter_sw.yaml
parent93e6a823bd8543d30621769c7b34d6261ea5cb01 (diff)
Add IWYU wrapper script to find unused includes
I've used this script in the recent past to fix warnings in mostly sw/inc/*.hxx. Hopefully sharing it creates interest for others to do similar fixes in other modules. Change-Id: I4c8b6a1e92b006d4fd56b403a25715f11964d639 Reviewed-on: https://gerrit.libreoffice.org/52289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'sw/IwyuFilter_sw.yaml')
-rw-r--r--sw/IwyuFilter_sw.yaml64
1 files changed, 64 insertions, 0 deletions
diff --git a/sw/IwyuFilter_sw.yaml b/sw/IwyuFilter_sw.yaml
new file mode 100644
index 000000000000..0cd235052705
--- /dev/null
+++ b/sw/IwyuFilter_sw.yaml
@@ -0,0 +1,64 @@
+---
+assumeFilename: sw/source/core/doc/docnew.cxx
+blacklist:
+ sw/inc/extinput.hxx:
+ - vector
+ sw/inc/fmtmeta.hxx:
+ - vector
+ sw/inc/istyleaccess.hxx:
+ - vector
+ sw/inc/shellres.hxx:
+ - memory
+ sw/inc/docary.hxx:
+ # Complete type is needed here:
+ # fldbas.hxx brings in SwTOXType, which is needed by SwTOXTypes, as SwVectorModifyBase's dtor wants to delete it
+ - fldbas.hxx
+ # numrule.hxx brings in SwNumRule, which is needed by SwNumRuleTable, as SwVectorModifyBase's dtor wants to delete it
+ - numrule.hxx
+ # tox.hxx brings in SwTOXType, which is needed by SwTOXTypes, as SwVectorModifyBase's dtor wants to delete it
+ - tox.hxx
+ sw/inc/docfac.hxx:
+ # Complete type is needed by rtl::Reference<SwDoc>.
+ - doc.hxx
+ sw/inc/accmap.hxx:
+ - o3tl/typed_flags_set.hxx
+ sw/inc/crsrsh.hxx:
+ - o3tl/typed_flags_set.hxx
+ sw/inc/cshtyp.hxx:
+ - o3tl/typed_flags_set.hxx
+ sw/inc/fesh.hxx:
+ - o3tl/typed_flags_set.hxx
+ sw/inc/modcfg.hxx:
+ - o3tl/typed_flags_set.hxx
+ sw/inc/ndtyp.hxx:
+ - o3tl/typed_flags_set.hxx
+ sw/inc/swtypes.hxx:
+ - o3tl/typed_flags_set.hxx
+ sw/inc/doc.hxx:
+ - o3tl/deleter.hxx
+ sw/inc/list.hxx:
+ - o3tl/deleter.hxx
+ sw/inc/IDocumentLinksAdministration.hxx:
+ - sal/types.h
+ sw/inc/pagedesc.hxx:
+ - boost/multi_index/identity.hpp
+ sw/inc/rdfhelper.hxx:
+ - com/sun/star/uno/Reference.h
+ sw/inc/ring.hxx:
+ - utility
+ sw/inc/shellid.hxx:
+ - sfx2/shell.hxx
+ sw/inc/swurl.hxx:
+ - o3tl/typed_flags_set.hxx
+ sw/inc/tblenum.hxx:
+ - o3tl/typed_flags_set.hxx
+ sw/inc/tox.hxx:
+ - o3tl/typed_flags_set.hxx
+ sw/inc/undobj.hxx:
+ - o3tl/typed_flags_set.hxx
+ sw/inc/unosett.hxx:
+ # sw::UnoImplPtr typedef
+ - unobaseclass.hxx
+ sw/inc/unotxdoc.hxx:
+ # sw::UnoImplPtr typedef
+ - unobaseclass.hxx