summaryrefslogtreecommitdiffstats
path: root/idl
Commit message (Collapse)AuthorAgeFilesLines
* loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann2015-05-111-1/+1
| | | | Change-Id: I3cf8c36fec3110b6c26f7b3cd550f8428963cc65
* loplugin:simplifyboolStephan Bergmann2015-04-241-2/+2
| | | | Change-Id: Ieae7ead7a1d55731d0be0dc339993ccd404b3578
* Improved loplugin:literaltoboolconversion looking into cond. exprs.Stephan Bergmann2015-04-231-2/+2
| | | | | | ...automatic rewriter fixes Change-Id: I6b04ca80f08f8a71ff94e309fd52f44d736751ee
* loplugin:implicitboolconversion clean-upStephan Bergmann2015-04-171-1/+1
| | | | Change-Id: Ib7138c40a7f78adae2c362019bc9e20900391ebf
* loplugin:staticmethodsNoel Grandin2015-04-074-10/+10
| | | | Change-Id: Ibaad2adabecb878411fdd66383bca91f034477af
* Clean up C-style casts from pointers to voidStephan Bergmann2015-03-281-3/+3
| | | | Change-Id: I1d37ac19f2738a7bac43fc8b44f782ff2363123a
* const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann2015-03-262-3/+3
| | | | Change-Id: Ia302dcfd4b4801170cb15950f4d7f1ba0792e93e
* convert SFX_SLOT_ constants to enum classNoel Grandin2015-02-252-9/+9
| | | | Change-Id: Icc3aad14d9d0c59c1c1c8f124f0626a9f947b93f
* remove unnecessary parenthesis in return statementsNoel Grandin2015-02-232-3/+3
| | | | | | | found with $ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;' Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
* remove unused typedefsNoel Grandin2015-01-283-6/+0
| | | | | | | | | found with some minor modifications to find/find-unused-defines.sh Change-Id: I18cc479adedc7a0dada68a4aeef08300e62631dd Reviewed-on: https://gerrit.libreoffice.org/14194 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* followup code removal after changing virtual methods to non-virtualNoel Grandin2015-01-261-1/+1
| | | | | | | | | | This cleanups up indentation and removes dead classes. This is a followup patch to commit 272b1dd55797aacf511fb4342b0054e3697243f6 "new loplugin: change virtual methods to non-virtual" Change-Id: I1c2139589cf8cb23bb9808defe22c51039d38de1
* new loplugin: change virtual methods to non-virtualNoel Grandin2015-01-262-2/+2
| | | | | | | | | | Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
* brute-force find-and-remove of unused #define constants.Noel Grandin2015-01-081-4/+0
| | | | Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
* fdo#84938: convert STREAM_ #defines to 'enum class'Noel Grandin2015-01-074-7/+7
| | | | Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
* remove if-block that has no effectMichael Weghorn2014-12-181-7/+0
| | | | | | | | | | | If the outer if-block is entered, 'aIsCollection' is returned, no matter whether the inner if-block is entered or not. Change-Id: Ief33e6fe6e29d1dfe287095424dac92e7f7d06b0 Reviewed-on: https://gerrit.libreoffice.org/13512 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* coverity#703967 Unchecked return valueCaolán McNamara2014-12-111-1/+1
| | | | Change-Id: I7da643edf07e689bb24129d363fbba8170efa652
* sal: clean up public headers with include-what-you-useMichael Stahl2014-11-174-1/+6
| | | | | | | | | Sadly cannot forward declare "struct {...} TimeValue;". rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h was painful enough for now... Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
* fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava2014-11-142-2/+2
| | | | | | | Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* callcatcher: update unused codeCaolán McNamara2014-10-2210-95/+0
| | | | Change-Id: I96b4d44e44389245f3ccc4a08198676461c6a38b
* Remove more unused idl partsStephan Bergmann2014-10-1612-836/+0
| | | | Change-Id: Id78de487b36a1c939dc3a4a5b38ab0b77999478c
* Strip svidl down to what is still usedStephan Bergmann2014-10-1619-2546/+103
| | | | | | | ...the generated .ilb, .lst, and .sid outputs requested by SdiTarget were apparently unused. Change-Id: I1abb2abc7945070451fce4a98a11d955515e3f63
* More -Werror,-Wunused-private-fieldStephan Bergmann2014-10-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...detected with a modified trunk Clang with > Index: lib/Sema/SemaDeclCXX.cpp > =================================================================== > --- lib/Sema/SemaDeclCXX.cpp (revision 219190) > +++ lib/Sema/SemaDeclCXX.cpp (working copy) > @@ -1917,9 +1917,10 @@ > const Type *T = FD.getType()->getBaseElementTypeUnsafe(); > // FIXME: Destruction of ObjC lifetime types has side-effects. > if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) > - return !RD->isCompleteDefinition() || > - !RD->hasTrivialDefaultConstructor() || > - !RD->hasTrivialDestructor(); > + return !RD->hasAttr<WarnUnusedAttr>() && > + (!RD->isCompleteDefinition() || > + !RD->hasTrivialDefaultConstructor() || > + !RD->hasTrivialDestructor()); > return false; > } > > @@ -3517,9 +3518,11 @@ > bool addFieldInitializer(CXXCtorInitializer *Init) { > AllToInit.push_back(Init); > > +#if 0 > // Check whether this initializer makes the field "used". > if (Init->getInit()->HasSideEffects(S.Context)) > S.UnusedPrivateFields.remove(Init->getAnyMember()); > +#endif > > return false; > } to warn about members of SAL_WARN_UNUSED-annotated class types, and warn about initializations with side effects (cf. <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-October/039602.html> "-Wunused-private-field distracted by side effects"). Change-Id: I3f3181c4eb8180ca28e1fa3dffc9dbe1002c6628
* rename SvRef::AddRef to AddFirstRefNoel Grandin2014-10-031-1/+1
| | | | | | | | | to make it's intended purpose clearly distinguishable from AddNextRef Change-Id: I5da780b48b19fd873667b648031bc394113f953b Reviewed-on: https://gerrit.libreoffice.org/11763 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin: cstylecastNoel Grandin2014-09-294-55/+55
| | | | Change-Id: I31bbeb5f068754d6dc77c22d759058089b03c9b1
* remove unnecessary casts in calls to SvStream.WriteUInt32Noel Grandin2014-09-261-1/+1
| | | | | | | left over from our conversion of the SvStream output operators to more specific methods Change-Id: I1d848f19f82783e6eabf2da37dbde78fe36ea1e0
* remove unnecessary casts in calls to SvStream.WriteUInt16Noel Grandin2014-09-263-4/+4
| | | | | | | left over from our conversion of the SvStream output operators to more specific methods Change-Id: I482ca7abb84613971e7e8f839f7aa67a65cd71ff
* remove unnecessary casts in calls to SvStream.WriteUCharNoel Grandin2014-09-261-2/+2
| | | | | | | left over from our conversion of the SvStream output operators to more specific methods Change-Id: I2ea4c7d97e745b3e6a3834f41ac7bfefa4883c7a
* remove unused fields pName and pMethodName in SfxSlot classNoel Grandin2014-09-223-23/+6
| | | | Change-Id: Icca5a0dee296fae1abeb78ea8ffa2f9e934bb111
* idl: ignore -isystem argsStephan Bergmann2014-06-261-0/+12
| | | | Change-Id: I0758fd3117795ed68789385576aee5a885639104
* loplugin:staticcallStephan Bergmann2014-06-132-5/+5
| | | | Change-Id: Id440c165f6e98a7d0fe0c8c578e404db75416c48
* Fix memory leakStephan Bergmann2014-05-282-0/+6
| | | | Change-Id: Ie12862f8df701298db51ed45b5c24814a6f94def
* Remove unnecessary semicolonsPeter Senna Tschudin2014-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | A simplified version of the semantic match that finds this problem is follows: (http://coccinelle.lip6.fr/) // <smpl> @r1@ statement S; position p,p1; @@ S@p1;@p @script:python r2@ p << r1.p; p1 << r1.p1; @@ if p[0].line != p1[0].line_end: cocci.include_match(False) @@ position r1.p; @@ -;@p // </smpl> Change-Id: Ib9708d37fbb4c6060f88d5dae3814a2d37b2091e Reviewed-on: https://gerrit.libreoffice.org/9493 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* coverity#1209405 Unchecked dynamic_castCaolán McNamara2014-05-261-2/+2
| | | | Change-Id: I5b16007b514169e2349c8c3a78d3c150c9d52d85
* Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold2014-05-151-1/+1
| | | | | | | Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* coverity#1209786 Dereference before null checkCaolán McNamara2014-05-091-1/+1
| | | | Change-Id: I98bb62bbcb7ffbd2896ddbcbaeea27fff0851653
* coverity#1209793 Dereference before null checkCaolán McNamara2014-05-091-1/+1
| | | | Change-Id: I5c89f7291117d66ff07f7d686c7030396cb504df
* translate to EnglishCaolán McNamara2014-05-081-1/+1
| | | | Change-Id: Ieb7ee3f8eb192612e76d5ad928389445e82ef90e
* idl: sal_Bool->boolNoel Grandin2014-05-0821-553/+554
| | | | Change-Id: I8b15c97b1fcc6acaf567e8b1d2d37cbc99687a9d
* fixincludeguards.sh: idl and idlcThomas Arnhold2014-04-1911-32/+32
| | | | Change-Id: I665e901eb6f65308b8f130da1c6da95bc3255490
* This file seems unused since the 20th centuryTakeshi Abe2014-04-191-0/+0
| | | | Change-Id: Idc26e03d51e37adbd23fb3c77d8ebe63ed8c3de3
* svidl: Unwind SFX_SLOTMAP_ARG, and kill it.Jan Holesovsky2014-04-181-1/+1
| | | | Change-Id: Icd99fd2cd530f52b0acf5d91667eeec8142e8340
* svidl: Unwind SFX_ARGUMENT macro, and kill it.Jan Holesovsky2014-04-182-6/+7
| | | | Change-Id: I61334b687c251ccc90f125e8bf95f8689028b8c3
* svidl: Unwind SFX_ARGUMENTMAP macro, and kill it.Jan Holesovsky2014-04-181-2/+2
| | | | Change-Id: I7c4902a4151f207d8a61b76d05fad74a4c8854d4
* remove executable bitAndras Timar2014-04-171-0/+0
| | | | Change-Id: I91f6e861f6d0dbea1b57ac73857e0c706b27f681
* Replace SV_DECL/IMPL_REF macros with SvRef templateStephan Bergmann2014-04-076-23/+19
| | | | Change-Id: I0ef2e67f6d61e0ce118c0f5e926b8194ef9d8058
* Explicitly mark overriding destructors as "virtual"Stephan Bergmann2014-04-011-1/+1
| | | | | | | | It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
* First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann2014-03-266-71/+71
| | | | | | | ...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
* Avoid duplicate symbols in libmerged for Windows too.Matúš Kukan2014-03-173-2/+25
| | | | | | This is working version of fc27a685d466dc380a8b68cd48f47db632ed3693 Change-Id: I48e861b5b7692ea051edf52d7ad9cc54ca989e22
* Revert "Avoid duplicate symbols in libmerged for Windows too."Matúš Kukan2014-03-143-26/+2
| | | | | | Forgot to test properly on Windows :-(. This reverts commit fc27a685d466dc380a8b68cd48f47db632ed3693.
* Avoid duplicate symbols in libmerged for Windows too.Matúš Kukan2014-03-143-2/+26
| | | | | | | | Export these symbols from sfx library. For cases when we link together more libraries, there are more symbols, so I've kept __attribute__((__weak__)) hack there. Change-Id: I8b7f6fc9bea479dca5062344c04b74c1f3eb36b2