new loplugin:xmlimport

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 26 February 2020 06:06 EST

to help me maintain the invariants when updating code to use the FastParser APIs. One weird invariant is that you need to override startFastElement or the createFastChildContext will not get called.

Not all of these changes are probably necessary - some of the classes are never constructured themselves, only their subclasses are constructed, and their subclasses maintain the invariants, but it is just easier to scatter a few more startFastElement around

Change-Id: I3f70fb5a1e44c311cf4926fa7b0fcda605709eac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89473

9b18f4b2b064 new loplugin:xmlimport
compilerplugins/clang/test/xmlimport.cxx | 54 ++++++++
compilerplugins/clang/xmlimport.cxx | 139 +++++++++++++++++++++
dbaccess/source/filter/xml/xmlfilter.cxx | 4 +
editeng/source/misc/SvXMLAutoCorrectImport.hxx | 6 +
include/xmloff/XMLCharContext.hxx | 3 +
linguistic/source/convdicxml.cxx | 3 +
reportdesign/source/filter/xml/xmlColumn.hxx | 3 +
reportdesign/source/filter/xml/xmlCondPrtExpr.hxx | 3 +
.../source/filter/xml/xmlControlProperty.hxx | 4 +
.../source/filter/xml/xmlFormatCondition.hxx | 3 +
reportdesign/source/filter/xml/xmlFunction.hxx | 3 +
reportdesign/source/filter/xml/xmlGroup.hxx | 3 +
reportdesign/source/filter/xml/xmlMasterFields.hxx | 3 +
.../source/filter/xml/xmlReportElement.hxx | 3 +
reportdesign/source/filter/xml/xmlSection.hxx | 3 +
reportdesign/source/filter/xml/xmlTable.hxx | 2 +
solenv/CompilerTest_compilerplugins_clang.mk | 1 +
sw/source/filter/xml/xmlimp.cxx | 4 +
sw/source/uibase/config/StoredChapterNumbering.cxx | 4 +
.../text/XMLAutoTextContainerEventImport.hxx | 3 +
20 files changed, 251 insertions(+)

Upstream: cgit.freedesktop.org


  • Share