summaryrefslogtreecommitdiff
path: root/bridges/source
AgeCommit message (Collapse)AuthorFilesLines
2016-10-16clang-cl loplugin: bridgesStephan Bergmann6-134/+138
Change-Id: I46bcc6eb1f34184626d2f584d7164d84f54c2cf8 Reviewed-on: https://gerrit.libreoffice.org/29879 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2016-09-15replace sal_Size with std::size_t (or sal_uInt64 for SvStream pos)Michael Stahl28-31/+31
... except in include/rtl, include/sal, include/uno, where sal_Size is retained for compatibility, and where callers of rtl functions pass in pointers that are incompatible on MSVC. Change-Id: I8344453780689f5120ba0870e44965b6d292450c
2016-09-13loplugin:overrideStephan Bergmann1-2/+2
Change-Id: I25cbca130c3e075d614d9bbb63b6264e8e73c165
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann1-2/+2
The issue of 362d4f0cd4e50111edfae9d30c90602c37ed65a2 "Explicitly mark overriding destructors as 'virtual'" appears to no longer be a problem with MSVC 2013. (The little change in the rewriting code of compilerplugins/clang/override.cxx was necessary to prevent an endless loop when adding "override" to OOO_DLLPUBLIC_CHARTTOOLS virtual ~CloseableLifeTimeManager(); in chart2/source/inc/LifeTime.hxx, getting stuck in the leading OOO_DLLPUBLIC_CHARTTOOLS macro. Can't remember what that isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.) Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
2016-08-20SAL_FALLTHROUGHTor Lillqvist2-1/+3
Change-Id: I9b13e20b873e919aef93e5c7548112c47f57612e
2016-08-10SAL_FALLTHROUGHTor Lillqvist2-0/+3
Change-Id: I347c13b282ccbd40a5e2e4a504f0c8ee1882d602
2016-08-05(initial) sparc64 portJames Clarke5-0/+2060
Change-Id: I8ec9bb5415a9e6b9083ba89a7790872d67625de1
2016-07-19Revert "hack for now"Caolán McNamara5-99/+107
This reverts commit f5792667cafef77cc4c142f4261f8b64280bc0fe. it turns out it was the use of an intermediate GtkGrid which made a11y work a little differently under gtk3. Clearly not intended to be pushed. Change-Id: I6931163e07ea413acdd45ba1353f357d317fdfbd
2016-07-19hack for nowCaolán McNamara5-107/+99
Change-Id: I62673e60ac8785c74fc4f97ad76bcb02c7e28941
2016-07-11loplugin:nullptr: Better heuristic to determine code shared between C and C++Stephan Bergmann2-18/+18
Change-Id: I51e1c5fa4639e51fac90f92adf3d87d12960d589
2016-07-05Clarify calculation precedence tdf#39440Muhammet Kara1-1/+1
Use parentheses to clarify the code. Change-Id: I864dc6dacadb5b9ba9dca8e0abd9fa4e6db1eddc Reviewed-on: https://gerrit.libreoffice.org/25677 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-06-21bridges: [loplugin:staticanonymous]Michael Stahl1-1/+1
Change-Id: I9d2c233c7060ea5c7a6bc028a8146ee8b2fd555b
2016-06-21bridges: [loplugin:nullptr]Michael Stahl3-37/+37
Change-Id: I7386569030fc95553bfb423d23d291430388992b
2016-06-21bridges: [loplugin:salbool]Michael Stahl2-4/+4
Change-Id: I1924f2b18763e42013c2b5ce80b664674e460fc7
2016-06-21bridges: -Werror,-Wimplicit-fallthroughMichael Stahl3-2/+5
Change-Id: I1ad51d4dc7e6bddfc5fa8d6252a7d6349bd5dfb7
2016-06-08tdf#39440 Reduced the scope of the variable cGökhan Gurbetoğlu1-2/+1
Change-Id: I14cf653a661664eeb31015bf8aa94f7c140dd87f Reviewed-on: https://gerrit.libreoffice.org/26002 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-05-27Get rid of unnecessary directory levels $D/inc/$DTor Lillqvist67-238/+238
Change-Id: Ibf313b8948a493043006ebf3a8281487c1f67b48 Reviewed-on: https://gerrit.libreoffice.org/25532 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2016-05-25SAL_FALLTRHOUGH in Windows-only codeStephan Bergmann2-2/+4
Change-Id: If35da46c209746a86687e1c3f60f72f2f08aa681
2016-05-12Replace comment with SAL_FALLTHROUGHStephan Bergmann2-2/+4
Change-Id: I9ccba0369453af3b4b3328b9fca94429369c6524
2016-05-10Replace fallthrough comments with new SAL_FALLTHROUGH macroStephan Bergmann3-3/+5
...which (in LIBO_INTERNAL_ONLY) for Clang expands to [[clang::fallthrough]] in preparation of enabling -Wimplicit-fallthrough. (This is only relevant for C++11, as neither C nor old C++ has a way to annotate intended fallthroughs.) Could use BOOST_FALLTHROUGH instead of introducing our own SAL_FALLTHROUGH, but that would require adding back in dependencies on boost_headers to many libraries where we carefully removed any remaining Boost dependencies only recently. (At least make SAL_FALLTHROUGH strictly LIBO_INTERNAL_ONLY, so its future evolution will not have any impact on the stable URE interface.) C++17 will have a proper [[fallthroug]], eventually removing the need for a macro altogether. Change-Id: I342a7610a107db7d7a344ea9cbddfd9714d7e9ca
2016-04-28tdf#97499 Fixed containers parameters clearing #7tymyjan1-1/+1
Change-Id: Ieb9ab0f9c011a24ba329cfb063e3d7733dd1afcb Reviewed-on: https://gerrit.libreoffice.org/24440 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-04-28tdf#97499 Fixed containers parameters clearing #6tymyjan1-1/+1
Change-Id: I89ad45eacfffd3783687b158a45f3eda0b95dece Reviewed-on: https://gerrit.libreoffice.org/24433 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-04-22loplugin:salboolStephan Bergmann2-4/+4
Change-Id: I3a96fd12e6fa3a64bd1888373dfce0f8f621aad4
2016-04-21clang-tidy modernize-loop-convert in b*Noel Grandin1-2/+2
Change-Id: I8ac6eb59e213eafa78e3dc4578738b53e8adef5b
2016-04-20loplugin:salbool: Automatic rewrite of sal_False/TrueStephan Bergmann5-10/+10
Change-Id: Ideaafe1920c9e27de7ed9e9f4fe9fc7cb8c3b6aa
2016-04-04tdf#94306 replace boost::noncopyable in ..Jochen Nitschke3-11/+23
.. accessibility, avmedia, basctl, basic and bridges remove boost from module if not needed anymore Change-Id: I6177f8276766a0a7df1703e81bf1b448912df6e2 Reviewed-on: https://gerrit.libreoffice.org/23744 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-03-10Avoid reserved identifiersStephan Bergmann4-14/+14
Change-Id: I0e353e3d892e1d01155dd7e48f8d24597604d3c4
2016-03-04-Werror,-WshadowStephan Bergmann1-2/+1
Change-Id: Ib20a02a846b745b65ffcf9ec1d45b39a6e0c50e4
2016-02-26Use config_cxxabi.h to check for __*class_type_infoStephan Bergmann1-14/+61
...as needed e.g. when building on Linux with clang -stdlib=libc++ against libc++abi Change-Id: I1f6f5ebcf5410c65453549ecea77581ccdaabc17
2016-02-26Adapt __cxxabiv1 for libc++abiStephan Bergmann1-1/+7
...where it has an additional nonstandard member, at least on Linux x86-64. Not sure whether #if defined _LIBCPPABI_VERSION is the best way to distinguish libc++abi from other C++ runtimes, but #define _LIBCPPABI_VERSION 1002 is what it has in its cxxabi.h. Change-Id: I9edbca27aa2bedbc5b2e996fd5ffcfc2e8eb42d9
2016-02-26Declarations based on config_cxxabi.h should be unrelated to _LIBCPP_VERSIONStephan Bergmann1-8/+1
Change-Id: I79049fefad8b626b5c58728b9c05c4952fb97f1a
2016-02-26Use config_cxxabi.h to check for __cxa_eh_globals, __cxa_exceptionStephan Bergmann3-52/+27
Change-Id: I467341da4bccb3afb82518b444cd101b3cdaacc9
2016-02-26cxxabi.h is not specific to GCCStephan Bergmann2-8/+8
Change-Id: Icaf4d4d41a36ae469f826ac08ab641a554dff3c9
2016-02-26Expect _Unwind_Exception to be defined in the compilers' unwind.hStephan Bergmann2-18/+4
Change-Id: Ie27018d21cf356ea5c6953958b466153f93f9a51
2016-02-26Add missing includeDavid Ostrovsky1-0/+1
Change-Id: I454b39a76595aedbbe1ca64f9b1982e5c27623cd Reviewed-on: https://gerrit.libreoffice.org/22708 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Ostrovsky <david@ostrovsky.org>
2016-02-22WaE: vs2015 shadow localNorbert Thiebaud1-7/+7
Change-Id: Ia1cb87653775bf9226bac46842b309d55fbaf084 Reviewed-on: https://gerrit.libreoffice.org/22598 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: Jenkins <ci@libreoffice.org>
2016-02-09Remove excess newlinesChris Sherlock11-15/+0
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-09Formatting changes across all modulesChris Sherlock1-138/+136
+ Removed comment cruft + Tab formatting in number of files + Some commented out code removed + Tab characters replaced with spaces + Newline cleanup in quite a few files + Tweak header guard #endifs Change-Id: I3208ff2f047da890edcc49b73389aca22442f5fc Reviewed-on: https://gerrit.libreoffice.org/22221 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-01Fix loop to actually get executedStephan Bergmann1-4/+2
Change-Id: I736868fbaa0783a2ed8be04c99f440f1cb964048
2016-02-01boost::unordered_map->std::unordered_map in bridgesNoel Grandin1-2/+2
Change-Id: Idf77d0871f932cf94003013db81c1bb67edbef16
2016-01-27Quickfix for Win 64-bit C++ UNO bridge (more than 20 params)Stephan Bergmann1-3/+9
See <https://wiki.documentfoundation.org/Development/msvc-x86_64#Broken_C.2B.2B-UNO_Bridge>, increase the number of supported params to 32 to at least make the ooo.vba.excel.XApplication.Intersect case (and thus CppunitTest_sc_macros_test) work. The true fix will be to abandon this simplistic approach, as elegant as it may have appeared. Change-Id: Ieeb17f682bd5ea8cb7a6188b89978698949461aa
2016-01-07cppcheck: noExplicitConstructorCaolán McNamara1-1/+1
Change-Id: I94db78ca12e0f3389f00ea5c557f0b64d452f613 Reviewed-on: https://gerrit.libreoffice.org/21150 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-19Kill check for ancient FreeBSD versionCaolán McNamara1-4/+0
along the lines of ... commit cee2655445319133095b0f6b19fc5b31d321099f Author: Baptiste Daroussin <bapt@FreeBSD.org> Date: Thu Dec 10 17:38:06 2015 +0100 Kill check for ancient FreeBSD version which removed the other uses of this Change-Id: I56a4448b27683ff8a86e4d760fec4f6bfc2d0bd6
2015-12-15tdf#95903: Fix return value handling in msvc_win32_x86-64 bridgeStephan Bergmann1-14/+30
...where a return value was double-deleted if it was "complex" (i.e., generated by callee into caller-provided memory) but not related to UNO interface types (so doesn't need any mapping, like sequence<css.beans.Property> returned by css.beans.XPropertySetInfo.getProperties). Change-Id: I4cfc16ba63022686afd016ef5b64419e8dee53a4
2015-12-11Kill check for ancient FreeBSD versionBaptiste Daroussin2-12/+0
Change-Id: Ia6f7d55d2d8d346695658549d2e86eef77215377 Reviewed-on: https://gerrit.libreoffice.org/20625 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-12-10More loplugin:nullptr automatic rewrite (within templates)Stephan Bergmann1-1/+1
Change-Id: I9bc06cfb5eeb38fd7ae7fb25f876ea9f96e4a65a
2015-12-02Work around missing __CxxDetectRethrow in clang-clStephan Bergmann1-0/+6
Change-Id: Ia42d39f04b22986d3fd873655b48dc31d834caee
2015-11-19missing namespaceStephan Bergmann1-2/+2
Change-Id: Ib291151508756035fbfde1805ba48e746d96dd59
2015-11-19...and make it clear that RegParamKind /is/ usedStephan Bergmann1-2/+2
...and will not erroneously be removed a third time Change-Id: I7007dbd1d3a1762523c0ce54a04c37a5d2203a48
2015-11-19REGPARAM_INT/FLT /are/ usedStephan Bergmann1-0/+1
...broken with 53f16c39f5c4c69ab603bf9098daec71f7a0acb8 "remove unused typedefs and inline use-once typedefs" Change-Id: I4b1343b98733ae998c7f9c594a86d65348402d28