summaryrefslogtreecommitdiff
path: root/compilerplugins
AgeCommit message (Collapse)Author
2015-11-11loplugin:mergeclass, fix and update resultsNoel Grandin
Change-Id: I0660833db69604c5c4dd3c5826f1baac3086e052
2015-11-115th step to remove tools/rtti.hxxOliver Specht
tools/rtti.hxx removed completed the interface of some Sdr.* Items and removed pseudo items Change-Id: I0cdcd01494be35b97a27d5985aa908affa96048a Reviewed-on: https://gerrit.libreoffice.org/19837 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-11disable loplugin memoryvar for nowNoel Grandin
seems to be crashing with latest(trunk) clang sometimes Change-Id: Ice92b35deb6cb4610dbd53f570d0b43e9d2a2834
2015-11-11new loplugin: memoryvarNoel Grandin
detect when we can convert a new/delete sequence on a local variable to use std::unique_ptr Change-Id: Iecae4e4197eccdfacfce2eed39aa4a69e4a660bc Reviewed-on: https://gerrit.libreoffice.org/19884 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-10Missing isInLokIncludeFile checkStephan Bergmann
Change-Id: I6577987f3f3717337e6607ffbe38397f229978f0
2015-11-10Keep LibreOfficeKit.hxx compatible with C++03Stephan Bergmann
Change-Id: Ic2f123c9b341dbb421b766c3bba1fc56c1bfb41d
2015-11-09new loplugin: oncevarNoel Grandin
Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-06compilerplugins: enhance "badstatics" plugin to find membersMichael Stahl
Finds static variables of types that have bad non-static members. Change-Id: I81ee940580c0f043feb543840ea4d3dd27734202
2015-11-06compilerplugins: getAsTagDecl doesn't exist in clang 3.5Michael Stahl
Change-Id: If7277820227486e2eb578a167e0fd9f05c8f74ae Reviewed-on: https://gerrit.libreoffice.org/19823 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-11-06loplugin:stringconstant: elide explicit ctor usageStephan Bergmann
Change-Id: I962db9583ef9cada42a61b6a95eeea818fceeead
2015-11-05fix tdf#95488, crash in report wizardNoel Grandin
This reverts commit bb76b8f10697f3d5ca1f9a2f19902b043bd61cd7 "loplugin:mergeclasses" Change-Id: Ib65459ab45cd4cefa859ed75f9ddc4f070879b1d
2015-11-05Improve warning messagesStephan Bergmann
Change-Id: I75eb9f17a3dcc688314355fa957e3f34086b161a
2015-11-05Do not implicitly run this for now; it breaks the buildStephan Bergmann
Change-Id: I84679c4ca395f934bca8f92f0587f6cf16cfa5e6
2015-11-05complete initial compiler plugin for the ServiceDocumenterBjoern Michaelsen
- this creates a set of static html-meta-redirect-pages linking the UNO implementation name to its C++ class, while doing a clang compile from scratch - the output is written to $(WORKDIR)/ServiceImplementations - still quite some corner cases missing, e.g: - anonymous namespaces - non-trivial getImplementationName() functions Change-Id: I19a0e8a3901277dc3811eb428cac9d00737f14a9
2015-11-05skeleton implementation for ServiceDocumenter compiler pluginStephan Bergmann
Change-Id: I6a9c957c0c4dac16365d269e57c30210619d23c9
2015-11-04yyyyyNoel Grandin
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2015-11-02tdf#94269: Replace "n" prefix for bool variables with "b"Benjamin Ni
Change-Id: I178545792c7354a362658ac7ef8b1d4cf0865797 Signed-off-by: Michael Stahl <mstahl@redhat.com>
2015-11-02compilerplugins: add "badstatics" to detect abuse of VCL BitmapsMichael Stahl
VCL Image/Bitmap/BitmapEx instances must not have static life-time because then they will be destructed after DeInitVCL() and that likely segfaults. Change-Id: I3ff8d32de729c971b190028094cb4efe206395e2
2015-10-30compilerplugins: check that we're not building ccache preprocessedMichael Stahl
... input, which breaks because a) isInUnoIncludeFile() will not recognize the paths (which is actually fixable if it used getPresumedLoc() to get the path), and b) the isMacroBodyExpansion() check in salbool.cxx (which doesn't look fixable). So instead of printing lots of spurious warnings just abort. Change-Id: I77fd77b4986d2b099453309ecdf31be9cf93ceec Reviewed-on: https://gerrit.libreoffice.org/19693 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2015-10-30compilerplugins: fix warning message copy-pastaMichael Stahl
Change-Id: I3b845ae46b0d0b14be90382727cc02a838a0392e
2015-10-27loplugin:unusedmethodsNoel Grandin
Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861 Reviewed-on: https://gerrit.libreoffice.org/19231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-27loplugin:unusedmethodsNoel Grandin
Change-Id: I73180266c0af98dbd8d29bd3b11850996b94def9 Reviewed-on: https://gerrit.libreoffice.org/19195 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-10-25tdf#39440: fix several warnings reported by cppcheckSerge Krot
Change-Id: I560d28b7cc67740c6479494d0e5aa62d2ac6ffae Reviewed-on: https://gerrit.libreoffice.org/19587 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-10-21remove untyped Link<>Noel Grandin
Change-Id: I809f9e10309ceadda0a82c3818277323b34ec61b Reviewed-on: https://gerrit.libreoffice.org/19491 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-21Ignore the default constructor for loplugin:badvectorinit tooAndrzej Hunt
The default constructor doesn't necessarily have 0 parameters, hence we need to explicitly test for this too. Change-Id: I685c44ab373ec8234a86824a77cc523a355c8b05 Reviewed-on: https://gerrit.libreoffice.org/19496 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-20Make loplugin:defaultparams handle enum values and nullptrsStephan Bergmann
Change-Id: I0c57b414d9230406cf2632494ccfa576510b0e61
2015-10-20new loplugin: badvectorinitNoel Grandin
look for places calling the 1-argument vector fill constructor and then immediately called push_back, which is generally a sign that its leaving empty slots. Change-Id: I34e69b8d09cc48c0d409499faaf192b9f86bc517 Reviewed-on: https://gerrit.libreoffice.org/17525 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-10-20Remove accidentally committed debug codeStephan Bergmann
Change-Id: Iba6b97d1a4a0988a3b0404bd14097f92a500d8ae
2015-10-20Make loplugin:defaultparams work for multiple default params per functionStephan Bergmann
Change-Id: I0aa3841e1ac3375f519384f3012450bc683d1c51
2015-10-13loplugin:mergeclasses, merge IControlContext with OBrowserListBoxNoel Grandin
Change-Id: Ib3e54c9fe8d9445ad799e4b06c41443093af87fb
2015-10-13loplugin:mergeclasses, merge OOdbcLibWrapper with OOdbcEnumerationNoel Grandin
Change-Id: I2e564e90c11bb46022a5e258ad013aeb2fe4ca2e
2015-10-13loplugin:mergeclasses, merge ILabelProvider with LabelProviderNoel Grandin
Change-Id: I8fb231b4189c09d8e049855d38b0f1eb518ac2b9
2015-10-13loplugin:mergeclasses, merge IImageProvider with ImageProviderNoel Grandin
Change-Id: I6af8b1ab9198439af60e38a9adc6bdd29d20ab52
2015-10-13loplugin:mergeclass, merge CompareLine with SwCompareLineNoel Grandin
Change-Id: Id423939377e6ebb0881a9a7361d6baedbf87931c
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-10-12loplugin:mergeclassesNoel Grandin
Change-Id: I935c6144a7731091e7fdb0a818b54f30d3304f2e
2015-10-12loplugin:mergeclassesNoel Grandin
Change-Id: I672d277a8d2dc6b57b299679e7e98348f9dbde30
2015-10-12loplugin:mergeclassesNoel Grandin
Change-Id: I31fe981dac14bd732ee68ee1a2e475dd1b0498a2
2015-10-12loplugin:mergeclassesNoel Grandin
Change-Id: Ic02d59708670949c3342566753882eebd086438f
2015-10-12loplugin:mergeclassesNoel Grandin
Change-Id: I6266369912413d51c9f1595b13dca97d3d74225f
2015-10-12loplugin:mergeclassesNoel Grandin
Change-Id: Id6e39c2c20ab3da5a8b8628f99a940b896feff78
2015-10-12loplugin:mergeclassesNoel Grandin
Change-Id: Ia4c09c5b835e77eaa2d4c0d8c74f146feb0905be
2015-10-12loplugin:mergeclassesNoel Grandin
Change-Id: I1ce2e31e4dae780612e51b3806ee6044be9cf4bb
2015-10-12loplugin:mergeclassesNoel Grandin
Change-Id: I660b102e0e053e632ea6f1880e92652bc1ed5e5e
2015-10-12loplugin:mergeclassesNoel Grandin
Change-Id: Icd01de71fe87e0bf17eba39f5b00fc9a46765509
2015-10-12loplugin:mergeclassesNoel Grandin
Change-Id: Ia4ae4f17fba9775fc53618ab1662c10e37ee4be3
2015-10-12improve the mergeclasses lopluginNoel Grandin
Change-Id: Icbb873c4ac15ef146b126b97f45eabdc53cd4c1a
2015-10-12loplugin:mergeclassesNoel Grandin
Change-Id: I555e3db911a97e798ce9f10c76d7fe187ea550a7
2015-10-07Revert "loplugin:mergeclasses" to fix mac buildCaolán McNamara
because fontsubst.cxx is not built on mac. move PreMatchFontSubstitution to PhysicalFontCollection.cxx ? This reverts commit 349700228e4449ace956b30bc65208b9196f0a78. Change-Id: I007f24313ddfd0eb3db3fd599abcf1eae3da4e9c