Make SfxItemSet ranges correct by construction: Fix static cases

Desktop / LibreOffice - Stephan Bergmann [redhat.com] - 19 June 2017 03:38 EDT

...with the aid of an extended compilerplugins/clang/store/sfxitemsetrewrite.cxx (which in turn needed a small addition to compilerplugins/clang/check.hxx).

Enable svl::detail::validGap check for the static case, but keep it disabled for now for the dynamic case.

1e3a00f Make SfxItemSet ranges correct by construction: Fix static cases
.../controller/drawinglayer/DrawViewWrapper.cxx | 12 +-
.../source/controller/main/DrawCommandDispatch.cxx | 28 ++--
chart2/source/controller/main/ShapeController.cxx | 12 +-
compilerplugins/clang/check.hxx | 15 ++
compilerplugins/clang/store/sfxitemsetrewrite.cxx | 157 +++++++++++++++++++++
cui/source/options/treeopt.cxx | 33 +++--
editeng/source/uno/unofdesc.cxx | 13 +-
.../source/propctrlr/formcomponenthandler.cxx | 8 +-
include/svl/itemset.hxx | 4 +-
reportdesign/source/ui/report/ReportSection.cxx | 26 ++--
sc/source/core/data/stlsheet.cxx | 14 +-
sc/source/filter/starcalc/scflt.cxx | 14 +-
sc/source/ui/app/scmod.cxx | 49 +++----
sc/source/ui/docshell/docsh3.cxx | 6 +-
sc/source/ui/drawfunc/drtxtob1.cxx | 12 +-
sc/source/ui/drawfunc/fuconcustomshape.cxx | 26 ++--
sc/source/ui/pagedlg/tphf.cxx | 8 +-
sd/source/ui/app/sdmod2.cxx | 22 +--
sd/source/ui/func/fuconcs.cxx | 26 ++--
sd/source/ui/view/drviews4.cxx | 8 +-
starmath/source/document.cxx | 15 +-
starmath/source/smmod.cxx | 16 +--
svl/source/items/itemset.cxx | 6 +-
svx/source/sdr/properties/captionproperties.cxx | 20 ++-
svx/source/sdr/properties/circleproperties.cxx | 22 ++-
svx/source/sdr/properties/connectorproperties.cxx | 21 ++-
.../sdr/properties/customshapeproperties.cxx | 30 ++--
svx/source/sdr/properties/measureproperties.cxx | 22 ++-
svx/source/svdraw/svdedtv1.cxx | 10 +-
svx/source/tbxctrls/grafctrl.cxx | 13 +-
sw/source/core/access/accpara.cxx | 17 +--
sw/source/core/crsr/crstrvl.cxx | 8 +-
.../core/doc/DocumentContentOperationsManager.cxx | 42 +++---
sw/source/core/doc/DocumentDeviceManager.cxx | 24 ++--
sw/source/core/doc/docfmt.cxx | 10 +-
sw/source/core/doc/docsort.cxx | 8 +-
sw/source/core/edit/autofmt.cxx | 12 +-
sw/source/core/txtnode/ndtxt.cxx | 33 +++--
sw/source/core/undo/untbl.cxx | 38 +++--
sw/source/core/unocore/unoobj.cxx | 16 ++-
sw/source/core/unocore/unoport.cxx | 10 +-
sw/source/core/unocore/unosect.cxx | 14 +-
sw/source/core/unocore/unotbl.cxx | 29 ++--
sw/source/filter/html/css1atr.cxx | 17 +--
sw/source/ui/dbui/mmlayoutpage.cxx | 18 +--
sw/source/ui/dialog/uiregionsw.cxx | 17 +--
sw/source/ui/frmdlg/column.cxx | 10 +-
sw/source/uibase/app/applab.cxx | 8 +-
sw/source/uibase/app/appopt.cxx | 36 ++---
sw/source/uibase/app/docstyle.cxx | 51 +++----
sw/source/uibase/dialog/regionsw.cxx | 19 +--
sw/source/uibase/docvw/HeaderFooterWin.cxx | 10 +-
sw/source/uibase/docvw/PageBreakWin.cxx | 6 +-
sw/source/uibase/docvw/edtwin.cxx | 14 +-
sw/source/uibase/misc/glshell.cxx | 10 +-
sw/source/uibase/ribbar/concustomshape.cxx | 26 ++--
sw/source/uibase/shells/annotsh.cxx | 28 ++--
sw/source/uibase/shells/drwbassh.cxx | 13 +-
sw/source/uibase/shells/drwtxtex.cxx | 19 +--
sw/source/uibase/shells/drwtxtsh.cxx | 9 +-
sw/source/uibase/shells/frmsh.cxx | 67 +++++----
sw/source/uibase/shells/grfsh.cxx | 60 ++++----
sw/source/uibase/shells/tabsh.cxx | 8 +-
sw/source/uibase/shells/textidx.cxx | 16 ++-
sw/source/uibase/shells/textsh1.cxx | 63 ++++-----
sw/source/uibase/uiview/formatclipboard.cxx | 85 ++++++-----
sw/source/uibase/uiview/viewprt.cxx | 12 +-
sw/source/uibase/uno/unotxdoc.cxx | 12 +-
sw/source/uibase/utlui/glbltree.cxx | 16 ++-
sw/source/uibase/utlui/numfmtlb.cxx | 15 +-
sw/source/uibase/wrtsh/wrtsh1.cxx | 20 +--
71 files changed, 920 insertions(+), 694 deletions(-)

Upstream: cgit.freedesktop.org


  • Share