summaryrefslogtreecommitdiffstats
path: root/tools/inc
Commit message (Collapse)AuthorAgeFilesLines
* Fast PCH generator and optimized PCH filesAshod Nakashian2015-11-151-45/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* (Poly)Polygons: sal_uIntPtr to sal_uInt32/sdt::size_t/enumMatteo Casalin2015-11-051-2/+2
| | | | Change-Id: I167d656f419ddbeb72960b8510fb8084605d4d5c
* Put Polygon from tools under tools:: namespaceNorbert Thiebaud2015-08-171-1/+3
| | | | | | | | | | Polygon is one of these names that Clash with some system objects A similar work has been done earlier with PolyPolygon. Change-Id: Icf2217cb2906292b7275760f1a16be0e150312f5 Reviewed-on: https://gerrit.libreoffice.org/17789 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
* remove some unnecessary typedefs to pointerNoel Grandin2015-06-301-3/+2
| | | | | | | | | that were really not helping make the code any clearer. Found with a search git grep -P 'typedef\s+\w+\s*\*\s*\w+\;' and manual inspection Change-Id: I6a5c031e9e060ad3623a7586ec8a8cc4fe6252e9
* convert all remaining BOOST_STATIC_ASSERT to static_assertCaolán McNamara2015-02-051-1/+0
| | | | | | and we can include a few less headers Change-Id: Id742849ff4c1c37a2b861aa3d6ab823f00ea87f8
* Updated all precompiled headers.Ashod Nakashian2015-02-051-0/+5
| | | | | | | | Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* boost::unordered_map->std::unordered_mapCaolán McNamara2015-01-021-1/+1
| | | | | | you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
* Remove o3tl/heap_ptr.hxx, use std::unique_ptr insteadStephan Bergmann2014-09-241-1/+0
| | | | Change-Id: Iac70c9be13892a36bfb5975f62e5345b88d4f144
* update_pchThomas Arnhold2014-08-131-0/+5
| | | | Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
* update_pch: add toolsThomas Arnhold2014-05-222-0/+97
| | | | Change-Id: Icb95d60a7f786ee75ea1904cfb7292e51eb607cc
* Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold2014-05-151-2/+2
| | | | | | | Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* unused header fileCaolán McNamara2013-11-131-31/+0
| | | | Change-Id: I179cc3dc58484ab1e21af3b1d776188d52f3974c
* drop DBGCHECKSTRINGCaolán McNamara2013-10-211-4/+0
| | | | Change-Id: I0c60becfd3a61cffb46c76e6f1488528c59b46e9
* Related: fdo#38838 ToInt64 and a EqualsIgnoreCaseAscii variant are now unusedCaolán McNamara2013-08-161-1/+0
| | | | Change-Id: I2a2cc56cf005f564c798b8d43ef7e8c4b7f9eeff
* Clean String and sal_Bool in toolsNorbert Thiebaud2013-06-301-2/+2
| | | | | | | Change-Id: I6a92196f33d7a5278c7dcc426112e9c56d582655 Reviewed-on: https://gerrit.libreoffice.org/4627 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
* execute move of global headersBjoern Michaelsen2013-04-2365-13221/+0
| | | | | | | see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
* Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks2013-04-221-24/+4
|
* we want the int. overloads of abs() hereDavid Tardon2013-04-201-1/+1
| | | | Change-Id: Ie82c51f65a2a0e13d6d30c85a23286574fd50b90
* Include <cmath> for std::abs()Tor Lillqvist2013-04-201-0/+1
| | | | Change-Id: Id94260d41e821386e2c0aef67075658bee7fd49f
* fdo#63154: Change Min/Max/Abs for std::min/max/absMarcos Paulo de Souza2013-04-202-21/+6
| | | | | | | | | Now all these usages were removed from LO. Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6 Reviewed-on: https://gerrit.libreoffice.org/3326 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* tools ::Time: change constructor to fixed-length integersLionel Elie Mamane2013-04-191-2/+2
| | | | Change-Id: I20180cda1a28f898f487aff605796077d3418be3
* Wrap large values in SAL_CONST_UINT64Stephan Bergmann2013-04-191-4/+4
| | | | Change-Id: I865808911043a61de5c4209fa889dbff7c8baf28
* Presumably "call clock" should be "wall clock"Tor Lillqvist2013-04-191-1/+1
| | | | Change-Id: I7bcdfccc17de7057cc47720bd6ce78345f2d6d7c
* date/time IDL datatypes incompatible changeLionel Elie Mamane2013-04-182-19/+35
| | | | | | | | | | - nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
* Move {pre,post}x.h to where {pre,post}mac.h and {pre,post}win.h areTor Lillqvist2013-04-162-125/+0
| | | | Change-Id: I561aa6cc1de7ed6128d25c82cd493d5d5718e052
* fdo#60724 correct spellingThomas Arnhold2013-04-151-1/+1
| | | | Change-Id: I3d978cb657647b4a4e9709258c6a6a4ac1d339a9
* fdo#60724 correct spellingThomas Arnhold2013-04-151-1/+1
| | | | Change-Id: Ieb653adbd0cb4371ec5db57e70bcc551872f647f
* Get rid of SHL_SBCTor Lillqvist2013-04-121-1/+1
| | | | | | | GetAppData(SHL_SBC) was used only locally in the sb library so no need for it. Just use a static pointer field. Change-Id: I37c8429b6c9e521a00c52bb622f78bdc4afe345c
* Get rid of GetAppData(SHL_IDE)Tor Lillqvist2013-04-121-1/+1
| | | | | | | It seems to be used only locally in basctl so there is really no reason for it. Change-Id: I9ad0a67621e190257e028fd3689f692e639eaf56
* Bin a local X11 wrapper header, vcl/inc/unx/salstd.hxxTor Lillqvist2013-04-102-14/+14
| | | | | | | | We already have <tools/prex.h> and <tools/postx.h>, so make those be sufficient instead. Bin another local vcl header vcl/inc/unx/svunx.h that just included those prex.h and postx.h. Adapt includers accordingly. Change-Id: I6638b3260fd3da45478fcc216b41f8c8a539f0d7
* Introduce characters utilities in rtl/character.hxxArnaud Versini2013-04-101-16/+17
| | | | | | | | | | Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, with slight modifications to sal/inc/rtl/character.hxx: * Replaced "#pragma once" with explicit include guard for now. * Missing includes. * Cosmetic clean-up. Change-Id: I94d01cd4e766f92c70f941839a67101fa2c97654
* remove needless forward rtl::OUString declarationsLuboš Luňák2013-04-072-5/+0
| | | | Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
* mass removal of rtl:: prefixes for O(U)String*Luboš Luňák2013-04-0718-305/+305
| | | | | | | | Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
* Typo in comment in resmgr.hxxChris Sherlock2013-04-071-1/+1
| | | | | | | Change-Id: I6378c79f77ab897bf5a4e39c00944037beeef328 Reviewed-on: https://gerrit.libreoffice.org/3220 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
* new module i18nlangtagEike Rathke2013-04-053-3/+3
| | | | | | | | | | | Moved portions from module i18npool, all of former i18nisolang1 library that now is i18nlangtag. Included are languagetag, isolang and mslangid. This i18nlangtag code is now even used by module comphelper, so disentangling i18npool and making this an own module was needed to not create circular module dependencies. Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
* fdo#61514 clean obsolete tools/ filesystem abstractionAndras Timar2013-04-041-335/+0
| | | | Change-Id: I7d1d5eca43d0b0f9a013e31383abc574a7b15f93
* fdo#44994 write out tools' FileCopier classAndras Timar2013-04-043-99/+0
| | | | Change-Id: Ie3d04f0b2ed35099d5682d165e17c10a6d736f99
* delete unused header fileAndras Timar2013-04-041-42/+0
| | | | Change-Id: I96a620475f9618b55fc0b3a294037ca5968b683c
* ResMgr with LanguageTagEike Rathke2013-03-292-14/+8
| | | | Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0
* Change how Rectangles are printed, special case for EMPTYTor Lillqvist2013-03-261-2/+5
| | | | Change-Id: I0fe230875e785b811ae09e04399790a53b354dd6
* debug: remove binfilter debug macroThomas Arnhold2013-03-211-3/+2
| | | | Change-Id: I419c37860a21ae5ab416a2c8ec3c742fbaf6a980
* The private SvFileStream::GetFileHandle() was used only on UNXTor Lillqvist2013-03-211-1/+2
| | | | | | Drop the Windows implementation which wasn't x64-clean anyway. Change-Id: I1622196dc4c3b940cc8d629016985cf97480a059
* Remove RTL_CONSTASCII_(U)STRINGPARAM in toolsChr. Rossmanith2013-03-161-8/+8
| | | | | | | Change-Id: Id97070321ad6b20f349896d3b4e1ae51cc82ece7 Reviewed-on: https://gerrit.libreoffice.org/2769 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* tempfile: Creating tempfiles in a given folder is not usedThomas Arnhold2013-03-121-9/+8
| | | | | | | | | | | | | | | | | It's always the case, that the default temp folder is used. aName and aRet are always empty, pParent is no longer used. So the pParent argument makes no sense anymore. bDirectory makes no sense without pParent and is apparently unused (always sal_False by default). The include of tools/tempfile.hxx in unotools/tempfile.cxx in not necessary. Conflicts: tools/source/fsys/tempfile.cxx Change-Id: I9c53b263a640e53140a8ae8795181b1c5e43f26d
* fdo#38838: Converting String/UniString to OUStringelixir2013-03-111-2/+2
| | | | | | | Change-Id: If64db96005fcd8a42e4fa24041867b99183965f9 Reviewed-on: https://gerrit.libreoffice.org/2586 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* Change definition of "dark" colour for fdo#61993Luke Deller2013-03-111-2/+2
| | | | | | | | | | | | | | | | | | | | - Increase the threshold for "dark" colours from Luminosity<=38 to Luminosity<=60. This makes LibreOffice align more closely with MS Word when considering whether "automatic" font colour should be black or white, a decision that is based on whether the background colour is "dark". Beware that this also affects other areas. - Fix the coefficients for GetLuminosity which appeared to be off by one according to the "Rec 601" coefficients for Luma quoted at http://en.wikipedia.org/wiki/Luma_%28video%29 Change-Id: I0af1f77909713e3db5ea8ee98456146569679594 Reviewed-on: https://gerrit.libreoffice.org/2601 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* SHL_SHL1 now unused, tooThomas Arnhold2013-03-041-1/+1
| | | | Change-Id: If73c578cf698b11b14b0f97b5f0deb0febac9b2f
* remove unused and commented out codeThomas Arnhold2013-03-041-1/+1
| | | | | | This code gets never called. Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
* The macro FEAT_FSYS_DOUBLESPEED has been removed and the related #if / ↵Jiri Blecha2013-03-041-6/+2
| | | | | | | #endif have been removed too. Bug: 61516 Change-Id: Id347e87a8789ddbe550dde7d7281d9c1cad0c199
* binfilter: remove some tracesThomas Arnhold2013-03-032-24/+1
| | | | Change-Id: I5b03dcb5d1f8c73c7a308e7ae209cc7872f18c61