summaryrefslogtreecommitdiff
path: root/solenv/bin/concat-deps.c
AgeCommit message (Collapse)AuthorFilesLines
2019-02-26loplugin:indentation (clang-cl)Stephan Bergmann1-1/+1
Change-Id: I94689e4eed290b4505d2caba2d9802ef7fb6cffd Reviewed-on: https://gerrit.libreoffice.org/68378 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-11new loplugin indentationNoel Grandin1-48/+48
look for mixed indentation in compound statements, which makes them hard to read, and sometimes makes it look like a statement is associated with a nearby if/for Change-Id: Ic8429cee1f9a86d938097a4a8769a2bce97b3361 Reviewed-on: https://gerrit.libreoffice.org/63283 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-01-30-Werror,-Wunused-macros (clang-cl)Stephan Bergmann1-1/+0
(And for non-__GNUC__, use of "inline" in static inline int clz(unsigned int value) should be accepted just fine by the C compiler.) Change-Id: I2b861aa39b815c16aa49a33a9d1fa7dfc3e1646c Reviewed-on: https://gerrit.libreoffice.org/67156 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-01-30loplugin:redundantinline (clang-cl)Stephan Bergmann1-1/+1
Change-Id: Ib6320ddc049e93cca4c5931ad28d1873d34bd8b4 Reviewed-on: https://gerrit.libreoffice.org/67137 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-11-07loplugin:collapseif in sdext..svxNoel Grandin1-8/+5
Change-Id: I188d9e9b53e00acfbae3c7acd54de28f084c4b3f Reviewed-on: https://gerrit.libreoffice.org/62985 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-10-09Extend loplugin:redundantinline to catch inline functions w/o external linkageStephan Bergmann1-9/+9
...where "inline" (in its meaning of "this function can be defined in multiple translation units") thus doesn't make much sense. (As discussed in compilerplugins/clang/redundantinline.cxx, exempt such "static inline" functions in include files for now.) All the rewriting has been done automatically by the plugin, except for one instance in sw/source/ui/frmdlg/column.cxx that used to involve an #if), plus some subsequent solenv/clang-format/reformat-formatted-files. Change-Id: Ib8b996b651aeafc03bbdc8890faa05ed50517224 Reviewed-on: https://gerrit.libreoffice.org/61573 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-09-17New loplugin:externalStephan Bergmann1-1/+1
...warning about (for now only) functions and variables with external linkage that likely don't need it. The problems with moving entities into unnamed namespacs and breaking ADL (as alluded to in comments in compilerplugins/clang/external.cxx) are illustrated by the fact that while struct S1 { int f() { return 0; } }; int f(S1 s) { return s.f(); } namespace N { struct S2: S1 { int f() { return 1; } }; int f(S2 s) { return s.f(); } } int main() { return f(N::S2()); } returns 1, both moving just the struct S2 into an nunnamed namespace, struct S1 { int f() { return 0; } }; int f(S1 s) { return s.f(); } namespace N { namespace { struct S2: S1 { int f() { return 1; } }; } int f(S2 s) { return s.f(); } } int main() { return f(N::S2()); } as well as moving just the function f overload into an unnamed namespace, struct S1 { int f() { return 0; } }; int f(S1 s) { return s.f(); } namespace N { struct S2: S1 { int f() { return 1; } }; namespace { int f(S2 s) { return s.f(); } } } int main() { return f(N::S2()); } would each change the program to return 0 instead. Change-Id: I4d09f7ac5e8f9bcd6e6bde4712608444b642265c Reviewed-on: https://gerrit.libreoffice.org/60539 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-03-05Make LibreOffice buildable on Haiku.Kacper Kasper1-0/+13
* Obviously VCL wiring is missing, but most components do build. Change-Id: Ie853ada1423a8f4c2b647be59cd47a7730c42978 Reviewed-on: https://gerrit.libreoffice.org/50293 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2017-11-24tdf#113787: gbuild: fix the version of cli_cppuhelper assemblyMichael Stahl1-0/+5
There is one usage of gb_Library_add_generated_cxxclrobjects in the entire repo, and regrettably generated C++/CLR objects weren't actually implemented in the new build system, so the assembly.cxx with its generated version number was simply ignored.
2017-07-21loplugin:constparams in soltools and variousNoel Grandin1-2/+2
Change-Id: I5e8e4a9a31aa7c3ff54cc7ce137d08770ea297e1 Reviewed-on: https://gerrit.libreoffice.org/40279 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-07-21de-hrc various thingsCaolán McNamara1-5/+0
e.g. helpid[s].hrc -> helpids.h and insert include guards where missing move "ordinary" defines into .hxx files remove .hrc entries that are used as arguments to dialog factory when a dedicated method can be added instead Change-Id: I792fb8eb0adfaa63cf354e6e57401fc943e9196e
2017-07-03loplugin:unusedfields in slideshow..svtoolsNoel Grandin1-4/+0
Change-Id: I74d5a4b8cfc4b18267f99648a3112b163c91fd8c Reviewed-on: https://gerrit.libreoffice.org/39474 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-07-02loplugin:casttovoid: solenvStephan Bergmann1-4/+5
Change-Id: Icd4328eed3cd682c98fc9be7368fcbac55a94edf
2017-03-25Fix typosAndrea Gelmini1-3/+3
Change-Id: I4eda687db6ad8d41e6a28430c76b288510da605d Reviewed-on: https://gerrit.libreoffice.org/35645 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-03-22Fix passing plain char into ctype.h is* functionsStephan Bergmann1-1/+2
Change-Id: I3d1fd585ba7f0bd8f6d074f0d2b86a20fa366072
2017-03-09Add missing CxxClrObject caseStephan Bergmann1-0/+5
Based on shm_get's (?) patch at <http://pastebin.com/yCghrjWX>. According to SweetShark on IRC, the reason for writing these phony files is: "IIRC not having them resulted in the builds being slow n windows as touching them required forks and windows is unionized and introduced the 35-fork-week or something." Change-Id: Ie0e6e2aa4e56ab620325ea55b4513e185db38ae7
2017-03-09"/CxxObject/" etc. part was missing from generate_phony_line outputStephan Bergmann1-10/+10
Change-Id: I973468aab05f85c39b33bbf7be7f3ee389273c21
2017-03-03Fix typosAndrea Gelmini1-1/+1
Change-Id: Ib25dadb25d8c2df1361de194f74cf3ddd459650d Reviewed-on: https://gerrit.libreoffice.org/34783 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-09loplugin:externvarStephan Bergmann1-1/+1
Change-Id: I63571c0003e6e0d7bd7a0c71a7dd47955a8871e0
2016-10-15clang-cl loplugin: solenvStephan Bergmann1-3/+2
Change-Id: I0a1075b92e787fc8bab7cfab5c3f24ad918a9181 Reviewed-on: https://gerrit.libreoffice.org/29850 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-02cppcheck invalidPrintfArgTypeJochen Nitschke1-1/+1
signedness and long vs int corrections Change-Id: I67c6b9e05b16f5d8d4693879f1656db50dc7ec48 Reviewed-on: https://gerrit.libreoffice.org/29355 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-03-16coverity#1356338 inline markup didn't workCaolán McNamara1-1/+1
Change-Id: I8b1bb924afe13a034125c892205aae8167a10bd1
2016-03-10Avoid reserved identifiersStephan Bergmann1-7/+7
Change-Id: I6275327a1b079f8cc0939e608dbbaff544ab05b0
2016-02-08Fix typosAndrea Gelmini1-1/+1
Change-Id: I4586168d3af81f047a4ded59fc6d257f17554885 Reviewed-on: https://gerrit.libreoffice.org/22194 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-01-10Fix typosAndrea Gelmini1-1/+1
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-14Fix build on BSDsBaptiste Daroussin1-4/+16
Change-Id: I88fbad89a78262f4c3275aa3a01fbebaacece245 Reviewed-on: https://gerrit.libreoffice.org/20660 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann1-3/+3
Change-Id: I5dfb8238b1365502544f6a383313311a9afd0e80
2015-09-30Fix typosAndrea Gelmini1-1/+1
Change-Id: I89ff6d31662824d83961d6457b82db8d8031168c Reviewed-on: https://gerrit.libreoffice.org/18977 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-08-26-Werror,-Wnonconst-parameterStephan Bergmann1-4/+4
Change-Id: I14c7e2245e1333a7cc3c372b29f4a3b679169209
2015-07-31concat-deps: fix build with gcc -fsanitize=... -std=gnu89Michael Stahl1-3/+6
Apparently Clang C89 mode is sloppily implemented and allows this. Change-Id: I78ef943bc4c5f8590dae8879dad65ad9fbe9a9bb
2015-06-08some spelling fixes, mostly in Java codeNoel Grandin1-1/+1
Change-Id: Ib9d0522a1f371404ee990348712e2d196049f69f
2014-11-24coverity#736477 document deliberate Resource leak at detection pointCaolán McNamara1-5/+6
Change-Id: Id9ad1df799c67110a426ee7ce41287703e8bdbfb
2014-06-09concat-deps: Win32 make $(file) will end lines with CRLFMichael Stahl1-1/+3
Change-Id: I3677de94e064c2f737cc7882b3cc4f42a6bf626a
2014-05-26Fragile concat-deps _process misinterprets ENOMEM from file_loadStephan Bergmann1-2/+2
Change-Id: I0df494b74f23b0a30fe26e25f58b4827bd28ed47
2014-05-22concat-deps: Clean up memory at exit when run with lsanStephan Bergmann1-1/+29
Change-Id: I66ccb5332e6c5eceb2f199911ebd4296c93cac4b
2014-04-02Internal linkageStephan Bergmann1-2/+2
Change-Id: Id329745fa1988003b4771c6b7d75f2db0930184c
2014-02-06coverity#736094 Argument cannot be negativeCaolán McNamara1-1/+1
Change-Id: I8368217e7fb40322de1f03ef68c1ddbe2fc5652a
2013-09-30-Werror,-Wunused-functionStephan Bergmann1-10/+0
Change-Id: I55e586fe1d145be139bf1c5b00f434ea31ba50d7
2013-09-23Print a helpful error message if we are going to failTor Lillqvist1-1/+5
Change-Id: I0685c9d2d857a9e994c616acb6d7ce106c7a7dad
2013-09-19Directly build UNOIDL .rdb files from .idl filesStephan Bergmann1-5/+0
...via unoidl-write and the new source-format registry provicers, instead of using idlc to produce .urd files, regmerge to merge them into legacy .rdb files, and unoidl-write to translate those to new UNOIDL .rdb files. gb_UnoApi and gb_InternalUnoApi ctors take an additional argument now that is the path (below $(SRCDIR)) of the source-format registry from which to obtain UNOIDL entity definitions. It can either be an .idl file (in which case no *_add_idlfiles calls should be used and the resulting .rdb will contain all the entities from that one .idl file; used in some tests to conveniently define all test-specific entities in a single file) or a directory denoting the root of an .idl file tree (in which case *_add_idlfiles calls specify the entites to include in the resulting .idl file). (In the first case, the generated .rdb file needs to depend on that single .idl file, so the gb_UnoApiTarget ctor contains a dependency on that additional argument, which happens, as a side effect, to trigger rebuilds in the second, tree-based case when addition/removal of .idl files in the tree causes updates of directory time-stamps.) UnoApiPartTarget and all the dependency-tracking logic based on .urd files in solenv/gbuild/UnoApiTarget.mk is gone. Generation of an .rdb file now depends on its source registry (see previous paragraph) and all the .idl files specified with *_add_idlfiles (in the second, tree-based case above). A consequence of that is that gb_UnoApi_add_idlfile, -_nohdl, and -_noheader all do the same now. I left them in for now anyway, maybe they become relevant again when the use of cppumaker is changed to read directly from a source-format registry instead of going via a .rdb registry. The legacy tools idlc, regcompare, regmerge, and regview are still contained in the URE or SDK for now. cb344cd59e1ddb7c6db66dbd9263b4755969d4ba "Revert 'Looks like idlc resolved typedefs inside sequence<...>'" is re-reverted as now "the current offapi.rdb is generated via unoidl-write instead of idlc." Change-Id: I3d9d92f17326bc9f49dd934c85aab6a17951d06d
2013-08-30WaE: size_t to int conversion: possible loss of dataTor Lillqvist1-1/+1
Change-Id: Ica626a5ebe8e3c022e5398b50253904d269ba0ce
2013-08-22Misaligned access is always undefined behaviorStephan Bergmann1-24/+0
...as flagged by Clang -fsanitize=undefined Change-Id: I924439b1546832ebc37b87d88279822b9b7b6c0d
2013-06-18WaE: variable may be used uninitializedTor Lillqvist1-2/+2
Change-Id: Icfdf8dddc4da20785e0881a95f50ee498e8405cd
2013-06-18handle missing dep files in concat-depsBjoern Michaelsen1-0/+115
* this and Ib4762f5a260035f00b5e68cf45b687fdf02e9c02 reduces a default build on my machine from 2min25sec to 2min12sec * without unitchecks, its down to 1min50sec now * it reduces the build time on a i7-4770 Windows tinderbox from 99min to 89min * by now it also takes care of avoiding most string copying, although this can certainly be considered overeager given that the file creation on Windows took ~250ms per file before and still will take a lot longer than any string operation with this change Change-Id: I515432bdefe2b055c78b6ba97868adbde65d9165
2013-04-15fdo#60724 correct spellingThomas Arnhold1-1/+1
Change-Id: Ieb653adbd0cb4371ec5db57e70bcc551872f647f
2013-03-27-Werror,-Wunused-macrosStephan Bergmann1-20/+18
Change-Id: I3c43fcfe7216a833f1dbe298098b72de52f0f155
2013-03-27-Wunused-macrosStephan Bergmann1-2/+0
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-14__BYTE_ORDER was used without the relevant #includeLuboš Luňák1-0/+1
Change-Id: I4e4d10c1c82834608b14aae62f02e5859d10114d
2013-03-11build concat-deps as ordinary executableMatúš Kukan1-3/+4
Change-Id: I6404472040f38c14ec7ca4a2c51be0d2f7f8199a Reviewed-on: https://gerrit.libreoffice.org/2659 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-05replace snprintf with fwrite in concat-depsPeter Foley1-13/+2
As suggested by Norbert Change-Id: I1b23f2e0de8524db9e1c903863163a82a3965e41