Test repository to check push and ssh key
Find a file
Noel Grandin b0de7bc428 clang-tidy modernize-use-emplace in various
Change-Id: Id1bbd3f380c17beeaab11f7140d4df1304c3d0d8
Reviewed-on: https://gerrit.libreoffice.org/41750
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-09-14 11:51:44 +02:00
.git-hooks insist in a domain in .ui files 2017-09-11 15:01:41 +02:00
accessibility vcl: remove dead TextAttribHyperLink 2017-08-11 13:44:29 +02:00
android android: tune symbols for lldb & we actually target 14 as minSDK 2017-09-12 12:04:09 +02:00
animations use more SAL_N_ELEMENTS part 3 2017-06-15 08:24:33 +02:00
apple_remote Typo notifcation->notification 2017-08-21 07:38:46 +02:00
avmedia loplugin:unnecessaryparen (clang-cl) 2017-09-14 08:35:54 +02:00
basctl clang-tidy modernize-use-emplace in b* 2017-09-08 20:17:31 +02:00
basegfx clang-tidy modernize-use-emplace in b* 2017-09-08 20:17:31 +02:00
basic Enable -Wunreachable-code 2017-09-13 10:24:38 +02:00
bean Typo about "document" 2017-08-20 12:51:00 +02:00
bin Android: Enable HAVE_FEATURE_NSS and package the NSS libraries with apk 2017-08-23 17:50:55 +02:00
binaryurp clang-tidy modernize-use-emplace in b* 2017-09-08 20:17:31 +02:00
bridges Fix typos 2017-09-07 19:08:44 +02:00
canvas clang-tidy modernize-use-emplace in c* 2017-09-11 08:40:57 +02:00
chart2 Fraction: make conversion operators and constructor explicit 2017-09-13 15:46:47 +02:00
cli_ure Fix typos 2017-08-17 21:53:28 +02:00
codemaker clang-tidy modernize-use-emplace in c* 2017-09-11 08:40:57 +02:00
comphelper clang-tidy modernize-use-emplace in c* 2017-09-11 08:40:57 +02:00
compilerplugins Enable -Wunreachable-code 2017-09-13 10:24:38 +02:00
config_host fix build with system libepubgen again 2017-08-22 14:43:38 +02:00
configmgr New rtl::isUnicodeScalarValue, rtl::isSurrogate 2017-09-13 13:35:49 +02:00
connectivity connectivity DatabaseMetaData: pull out OComponent from OCalc/Writer 2017-09-11 12:27:13 +02:00
cppcanvas clang-tidy modernize-use-emplace in c* 2017-09-11 08:40:57 +02:00
cppu Enable -Wunreachable-code 2017-09-13 10:24:38 +02:00
cppuhelper loplugin:unnecessaryparen include c++ casts 2017-09-04 10:52:41 +02:00
cpputools use more OUString::operator== comphelper..cui 2017-07-13 11:03:14 +02:00
cui Fraction: make conversion operators and constructor explicit 2017-09-13 15:46:47 +02:00
dbaccess clang-tidy modernize-use-emplace in d* 2017-09-11 09:44:12 +02:00
desktop [API CHANGE] lok: Don't use 'bool' and 'uint64_t' in the stable API. 2017-09-14 09:50:54 +02:00
dictionaries@b47ce35a6a Updated core 2017-09-05 18:11:32 +02:00
distro-configs No libqxp in org.gnome.Sdk//3.24 2017-09-07 13:47:02 +02:00
drawinglayer tdf#111853 Added TextFillColor to operator== 2017-09-12 13:26:40 +02:00
dtrans loplugin:unnecessaryparen (clang-cl) 2017-09-14 08:36:20 +02:00
editeng clang-tidy modernize-use-emplace in editeng..framework 2017-09-11 09:42:55 +02:00
embeddedobj loplugin:unnecessaryparen include c++ casts 2017-09-04 10:52:41 +02:00
embedserv loplugin:redundantpointerops (clang-cl) 2017-09-14 08:37:19 +02:00
emfio stray debugging 2017-09-04 08:54:50 +01:00
eventattacher teach redundantcast plugin about functional casts 2017-05-30 08:50:31 +02:00
extensions Make clamping of aParams.format work reliably 2017-09-11 14:34:05 +02:00
external Silence clang-cl -Wpragma-pack in external/nss 2017-09-14 08:38:12 +02:00
extras Initialize and update Function list box properly 2017-09-04 22:39:46 +02:00
filter Fraction: make conversion operators and constructor explicit 2017-09-13 15:46:47 +02:00
forms clang-tidy modernize-use-emplace in editeng..framework 2017-09-11 09:42:55 +02:00
formula clang-tidy modernize-use-emplace in editeng..framework 2017-09-11 09:42:55 +02:00
fpicker clang-tidy modernize-use-emplace in editeng..framework 2017-09-11 09:42:55 +02:00
framework clang-tidy modernize-use-emplace in editeng..framework 2017-09-11 09:42:55 +02:00
helpcompiler cppcheck: unreadVariable 2017-08-06 17:28:45 +02:00
helpcontent2@42fbc78907 Updated core 2017-09-13 01:58:58 +02:00
hwpfilter clang-tidy modernize-use-emplace in hwpfilter..lotuswordpro 2017-09-11 13:50:50 +02:00
i18nlangtag Unit tests for 'es_ES_u_co_trad' and 'es_ES_tradnl', tdf#83190 2017-09-12 16:57:55 +02:00
i18npool iOS, make gendict.cxx compile 2017-09-06 13:04:47 +02:00
i18nutil loplugin:constparams in i18nutil,sot 2017-07-17 13:31:28 +02:00
icon-themes some color view error was removed 2017-09-03 23:18:20 +02:00
idl SvPersistStream dead 2017-08-08 20:56:44 +02:00
idlc clang-tidy modernize-use-emplace in hwpfilter..lotuswordpro 2017-09-11 13:50:50 +02:00
include [API CHANGE] lok: Don't use 'bool' and 'uint64_t' in the stable API. 2017-09-14 09:50:54 +02:00
instsetoo_native Removed quotation marks that destroyed some strings for Pootle export 2017-09-13 16:10:19 +01:00
io loplugin:unnecessaryparen include c++ casts 2017-09-04 10:52:41 +02:00
ios iOS, avoid copying res files. 2017-09-06 13:04:47 +02:00
javaunohelper Fix a locking bug in our Java ComponentBase class, where after the transition 2017-09-13 10:16:18 +02:00
jurt Typos for "available" 2017-09-02 16:05:01 +02:00
jvmaccess loplugin:constparams in various 2017-08-01 12:30:55 +02:00
jvmfwk clang-tidy modernize-use-emplace in hwpfilter..lotuswordpro 2017-09-11 13:50:50 +02:00
l10ntools Use "en-US" as the default for XHP's xml-lang attribute. 2017-09-13 01:53:47 +02:00
librelogo enum spelling: throught -> through 2017-04-12 17:31:52 +02:00
libreofficekit clang-tidy modernize-use-emplace in hwpfilter..lotuswordpro 2017-09-11 13:50:50 +02:00
lingucomponent loplugin:constparams in editeng,lingucomponent 2017-07-22 09:12:56 +02:00
linguistic remove unnecessary use of OUString::getStr 2017-08-17 11:55:13 +02:00
lotuswordpro clang-tidy modernize-use-emplace in hwpfilter..lotuswordpro 2017-09-11 13:50:50 +02:00
m4 Fix typos 2017-08-18 07:44:59 +02:00
mysqlc Remove unused m_aBatchVector members 2017-09-01 13:40:35 +02:00
nlpsolver
o3tl const correctness in o3tl::array_view 2017-09-06 15:18:33 +02:00
odk OSX fix ODK example builds with enabled SIP 2017-09-06 14:38:35 +02:00
offapi Missing @since tags 2017-09-11 11:10:41 +02:00
officecfg Drop unused ooOpenSourceContext config key 2017-09-14 10:05:47 +02:00
onlineupdate onlineupdate: work around GCC7 -Werror=implicit-fallthrough 2017-09-13 20:55:56 +02:00
oovbaapi oovbaapi: create XOval and XLine shape types 2017-09-08 09:29:36 +02:00
oox tdf#112311 oox: fix UAF of std::shared_ptr 2017-09-13 11:09:38 +02:00
opencl Get rid of need to use initial :: for ::opencl to avoid clash with sc::opencl 2017-08-25 15:49:34 +03:00
osx
package clang-tidy modernize-use-emplace in package..sax 2017-09-12 08:03:09 +02:00
postprocess clang-tidy modernize-use-emplace in package..sax 2017-09-12 08:03:09 +02:00
pyuno remove unnecessary use of OUString::getStr 2017-08-17 11:55:13 +02:00
qadevOOo Fix typos 2017-09-07 19:08:44 +02:00
readlicense_oo update credits 2017-08-22 20:16:03 +02:00
registry loplugin:unnecessaryparen 2017-08-18 08:49:37 +02:00
remotebridges remove unused osl/mutex.hxx includes 2017-06-18 13:38:25 +02:00
reportbuilder This really does not need to be utf-8 character 2017-09-12 13:37:58 +02:00
reportdesign Fraction: make conversion operators and constructor explicit 2017-09-13 15:46:47 +02:00
ridljar i#32546# - Java UnoRuntime.getUniqueKey/generateOid do not work reliably 2017-08-25 19:24:50 +02:00
sal New rtl::isUnicodeScalarValue, rtl::isSurrogate 2017-09-13 13:35:49 +02:00
salhelper remove UL/L suffixes from integer constants on the RHS of expressions 2017-08-17 11:25:21 +02:00
sax New rtl::isUnicodeScalarValue, rtl::isSurrogate 2017-09-13 13:35:49 +02:00
sc convert ScAttrArray to use std::vector 2017-09-14 08:28:15 +02:00
scaddins remove unnecessary use of OUString::getStr 2017-08-17 11:55:13 +02:00
sccomp sccomp_lpsolver -> sccomp_solver 2017-08-27 17:33:41 +02:00
schema revert fix typos 2017-07-19 14:36:13 +02:00
scp2 tdf#63913 fix Win explorer multi-select open unnamed docs bug 2017-09-03 01:41:15 +02:00
scripting inline some use-once typedefs 2017-08-31 12:06:50 +02:00
sd Silence -Werror,-Wunreachable-code 2017-09-13 17:53:38 +02:00
sdext clang-tidy modernize-use-emplace in sd 2017-09-12 10:33:27 +02:00
setup_native loplugin:constparams: setup_native (clang-cl) 2017-08-31 12:14:40 +02:00
sfx2 loplugin:unnecessaryparen (clang-cl) 2017-09-14 08:38:43 +02:00
shell loplugin:constparams: shell (clang-cl) 2017-08-31 12:14:40 +02:00
slideshow clang-tidy modernize-use-emplace in slideshow 2017-09-13 14:16:51 +02:00
smoketest loplugin:constparams: smoketest (clang-cl) 2017-08-31 12:14:41 +02:00
solenv Adapt flatpak-manifest.in to updated poppler and libwpg 2017-09-14 08:48:20 +02:00
soltools remove some unused macro definitions 2017-08-29 15:19:17 +02:00
sot loplugin:unnecessaryparen include c++ casts 2017-09-04 10:52:41 +02:00
starmath Fraction: make conversion operators and constructor explicit 2017-09-13 15:46:47 +02:00
stoc New rtl::isUnicodeScalarValue, rtl::isSurrogate 2017-09-13 13:35:49 +02:00
store loplugin:unnecessaryparen 2017-08-18 08:49:37 +02:00
svgio clang-tidy modernize-use-emplace in svgio..svtools 2017-09-12 13:15:40 +02:00
svl loplugin:cstylecast (clang-cl) 2017-09-14 08:39:58 +02:00
svtools no need to call GetNumerator() / GetDenominator() for Fraction 2017-09-13 15:47:04 +02:00
svx svx: Simplify SdrHelpLineList with std::unique_ptr 2017-09-13 16:13:59 +02:00
sw clang-tidy modernize-use-emplace in sw 2017-09-14 08:28:31 +02:00
swext tdf#80671: mediawiki, no superscript tags allowed in footnotes 2017-06-11 23:05:32 +02:00
sysui deb#872001: stop shipping mimelnk desktop files 2017-08-15 21:27:08 +02:00
test clang-tidy modernize-use-emplace in test..vbahelper 2017-09-14 08:29:11 +02:00
testtools Fix typos 2017-06-27 13:15:34 +02:00
toolkit clang-tidy modernize-use-emplace in test..vbahelper 2017-09-14 08:29:11 +02:00
tools New rtl::isUnicodeScalarValue, rtl::isSurrogate 2017-09-13 13:35:49 +02:00
translations@d317414f82 Updated core 2017-07-12 18:19:40 +02:00
ucb clang-tidy modernize-use-emplace in test..vbahelper 2017-09-14 08:29:11 +02:00
ucbhelper clang-tidy modernize-use-emplace in test..vbahelper 2017-09-14 08:29:11 +02:00
udkapi Translate German comments/debug strings (leftovers in dirs test to uui) 2017-09-04 11:04:46 +02:00
uitest Fix UITest_writer_demo with --enable-ext-languagetool 2017-08-08 15:59:55 +02:00
UnoControls loplugin:unnecessaryparen include c++ casts 2017-09-04 10:52:41 +02:00
unodevtools remove unnecessary use of OUString::getStr 2017-08-17 11:55:13 +02:00
unoidl convert std::map::insert to std::map::emplace II 2017-08-11 13:51:29 +02:00
unoil tdf#108709 cli_ure,unoil: bump CLI assembly versions for 5.4 2017-08-16 15:35:09 +02:00
unotest unotest.py: refactor confusing mess of openDoc functions 2017-09-07 21:44:57 +02:00
unotools clang-tidy modernize-use-emplace in test..vbahelper 2017-09-14 08:29:11 +02:00
unoxml clang-tidy modernize-use-emplace in test..vbahelper 2017-09-14 08:29:11 +02:00
ure Fix quoting 2017-05-30 17:38:27 +02:00
uui Translate German comments/debug strings (leftovers in dirs test to uui) 2017-09-04 11:04:46 +02:00
vbahelper clang-tidy modernize-use-emplace in test..vbahelper 2017-09-14 08:29:11 +02:00
vcl use unique_ptr for mpControlFont 2017-09-14 10:12:12 +02:00
winaccessibility loplugin:constparams: winaccessibility (clang-cl) 2017-08-31 12:14:41 +02:00
wizards Drop lazywrite property, which is silently ignored by configmgr anyway 2017-09-05 17:57:18 +02:00
writerfilter clang-tidy modernize-use-emplace in various 2017-09-14 11:51:44 +02:00
writerperfect clang-tidy modernize-use-emplace in various 2017-09-14 11:51:44 +02:00
xmerge Revert "Fix typos" 2017-05-18 21:58:31 +02:00
xmlhelp clang-tidy modernize-use-emplace in various 2017-09-14 11:51:44 +02:00
xmloff clang-tidy modernize-use-emplace in xmloff 2017-09-14 10:25:27 +02:00
xmlreader clang-tidy modernize-use-emplace in various 2017-09-14 11:51:44 +02:00
xmlscript clang-tidy modernize-use-emplace in various 2017-09-14 11:51:44 +02:00
xmlsecurity clang-tidy modernize-use-emplace in various 2017-09-14 11:51:44 +02:00
.buckconfig
.buckversion
.editorconfig Add xsl files to .editorconfig 2017-08-11 08:34:55 +02:00
.gitattributes Ignore schema files for src tarball generation 2016-08-30 23:59:15 +00:00
.gitignore Added VisualStudioCode/unified MSDEV VC.db 2017-08-29 09:41:43 +02:00
.gitmodules
.gitreview
autogen.sh Fix typos 2017-08-17 21:53:28 +02:00
BUCK Add build toolchain to upload LibreOffice API to Maven Central 2015-12-03 23:32:11 +00:00
config.guess
config.sub iOS, add support for arm64 2017-06-07 12:26:24 +02:00
config_host.mk.in simplify configure for android that started to bitrot a little 2017-09-13 21:10:43 +02:00
config_host_lang.mk.in
configure.ac simplify configure for android that started to bitrot a little 2017-09-13 21:10:43 +02:00
COPYING
COPYING.LGPL
COPYING.MPL Targetted text updates, with seasonable changes before l10n freeze. 2013-12-13 17:00:07 +00:00
download.lst upload libwpg 0.3.2 2017-09-13 20:43:53 +02:00
g tdf#105204: more ShellCheck nitpicks for g 2017-04-27 12:22:25 +02:00
install-sh
leak-suppress.txt migrate to boost::gettext 2017-07-21 08:20:50 +01:00
Library_merged.mk
lo.xcent.in
logerrit Improve error message on ssh login failure. 2017-09-06 16:07:50 +02:00
Makefile.fetch integrate libqxp 2017-08-28 08:20:47 +02:00
Makefile.gbuild updater: workaround cygwin python bug around command line arguments 2017-08-05 05:31:06 +02:00
Makefile.in Allow to call 'make install-gdb-printers' individually 2017-09-07 17:01:43 +02:00
README.cross Fix typos 2017-08-17 21:53:28 +02:00
README.md Document baselines 2017-09-08 18:11:29 +02:00
README.Solaris
Repository.mk updater: get the updater GUI working on Linux 2017-08-22 20:01:56 +02:00
RepositoryExternal.mk integrate libqxp 2017-08-28 08:20:47 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk migrate to boost::gettext 2017-07-21 08:20:50 +01:00
RepositoryModule_host.mk migrate to boost::gettext 2017-07-21 08:20:50 +01:00
sanitize-ubsan-blacklist file for ci-based ubsan build 2015-10-31 01:32:18 -05:00
TEMPLATE.SOURCECODE.HEADER

LibreOffice

Coverity Scan Build Status CII Best Practices

LibreOffice is an integrated office suite based on copyleft licenses and compatible with most document formats and standards. Libreoffice is backed by The Document Foundation, which represents a large independent community of enterprises, developers and other volunteers moved by the common goal of bringing to the market the best software for personal productivity. LibreOffice is open source, and free to download, use and distribute.

A quick overview of the LibreOffice code structure.

Overview

You can develop for LibreOffice in one of two ways, one recommended and one much less so. First the somewhat less recommended way: it is possible to use the SDK to develop an extension, for which you can read the API docs here and here. This re-uses the (extremely generic) UNO APIs that are also used by macro scripting in StarBasic.

The best way to add a generally useful feature to LibreOffice is to work on the code base however. Overall this way makes it easier to compile and build your code, it avoids any arbitrary limitations of our scripting APIs, and in general is far more simple and intuitive - if you are a reasonably able C++ programmer.

The build chain and runtime baselines

These are the current minimal operating system and compiler versions to run and compile LibreOffice, also used by the TDF builds:

  • Windows:
  • Runtime: Windows 7
  • Build: Cygwin + Visual Studio 2015 Update 3
  • macOS:
  • Runtime: 10.9
  • Build: 10.11 + Xcode 8
  • Linux:
  • Runtime: RHEL 6 or CentOS 6
  • Build: GCC 4.8.1 or Clang

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 3.4. Since Xcode doesn't provide the compiler plugin headers, you have to compile your own Clang to use them on macOS.

You can find the TDF configure switches in the distro-configs/ directory.

To setup your initial build environment on Windows and macOS, we provide the LibreOffice Development Environment (LODE) scripts.

For more information see the build instructions for your platform in the TDF wiki.

The important bits of code

Each module should have a README file inside it which has some degree of documentation for that module; patches are most welcome to improve those. We have those turned into a web page here:

http://docs.libreoffice.org/

However, there are two hundred modules, many of them of only peripheral interest for a specialist audience. So - where is the good stuff, the code that is most useful. Here is a quick overview of the most important ones:

Module Description
sal/ this provides a simple System Abstraction Layer
tools/ this provides basic internal types: 'Rectangle', 'Color' etc.
vcl/ this is the widget toolkit library and one rendering abstraction
framework UNO framework, responsible for building toolbars, menus, status bars, and the chrome around the document using widgets from VCL, and XML descriptions from /uiconfig/ files
sfx2/ legacy core framework used by Writer/Calc/Draw: document model / load/save / signals for actions etc.
svx/ drawing model related helper code, including much of Draw/Impress

Then applications

Module Description
desktop/ this is where the 'main' for the application lives, init / bootstrap. the name dates back to an ancient StarOffice that also drew a desktop
sw/ Writer
sc/ Calc
sd/ Draw / Impress

There are several other libraries that are helpful from a graphical perspective:

Module Description
basegfx/ algorithms and data-types for graphics as used in the canvas
canvas/ new (UNO) canvas rendering model with various backends
cppcanvas/ C++ helper classes for using the UNO canvas
drawinglayer/ View code to render drawable objects and break them down into primitives we can render more easily.

Finding out more

Beyond this, you can read the README files, send us patches, ask on the mailing list libreoffice@lists.freedesktop.org (no subscription required) or poke people on IRC #libreoffice-dev on irc.freenode.net - we're a friendly and generally helpful mob. We know the code can be hard to get into at first, and so there are no silly questions.