Test repository to check push and ssh key
Find a file
Stephan Bergmann 4e62db5876 Use o3tl::doAccess, prevent -Werror=maybe-uninitialized
Change-Id: I6a86db428dcf92083ee13298417b3d3027e45822
Reviewed-on: https://gerrit.libreoffice.org/84338
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-12-03 20:56:29 +01:00
.git-hooks Don't count terminating newline when determining line length 2019-12-03 20:21:33 +01:00
.github
accessibility loplugin:mergeclasses ListBoxAccessibleBase with AccessibleListBoxEntry 2019-12-03 20:01:46 +01:00
android android: Fix linking of liblo-native-code.so on aarch64. 2019-12-02 09:14:37 +01:00
animations Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
apple_remote
avmedia loplugin:mergeclasses SoundHandler 2019-11-30 21:34:29 +01:00
basctl remove some useless comment lines 2019-12-03 12:46:27 +01:00
basegfx Simplify a bit B2DPolyRange::appendElement (basegfx) 2019-12-03 12:29:35 +01:00
basic remove some useless comment lines 2019-12-03 12:46:27 +01:00
bean
bin make update_pch work again 2019-12-01 22:19:44 +01:00
binaryurp
bridges bridges arm64: Use [[falltrough]]. 2019-12-02 11:34:25 +01:00
canvas Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
chart2 remove some useless comment lines 2019-12-03 12:46:27 +01:00
cli_ure
codemaker
comphelper remove some useless comment lines 2019-12-03 12:46:27 +01:00
compilerplugins desktop: disable callback handling while changing the view 2019-12-03 09:47:25 +01:00
config_host android: Introduce --enable-android-lok configure switch to fix RGB vs. BGR. 2019-11-27 15:52:35 +01:00
configmgr
connectivity Simplify SQLError::ParamValue to just o3tl::optional<OUString> 2019-12-02 17:48:06 +01:00
cppcanvas Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
cppu cppcheck: performing init in init list (comphelper/connectivity/cppu/cui) 2019-11-23 23:51:35 +01:00
cppuhelper remove some useless comment lines 2019-12-03 12:46:27 +01:00
cpputools Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
cui remove some useless comment lines 2019-12-03 12:46:27 +01:00
dbaccess remove some useless comment lines 2019-12-03 12:46:27 +01:00
desktop use scoped enum 2019-12-03 15:46:23 +01:00
dictionaries@4fb010374f
distro-configs Disable skia for online 2019-11-29 07:25:28 +01:00
drawinglayer handle properly true 32bit bitmaps in some places 2019-11-27 09:55:18 +01:00
dtrans loplugin:consttobool (clang-cl) 2019-11-26 16:45:19 +01:00
editeng remove some useless comment lines 2019-12-03 12:46:27 +01:00
embeddedobj Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
embedserv loplugin:consttobool (clang-cl) 2019-11-26 16:45:19 +01:00
emfio Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
eventattacher Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
extensions remove some useless comment lines 2019-12-03 12:46:27 +01:00
external external/clucene: Adapt to C++20 deleted ostream << for non-plain char types 2019-12-03 16:06:05 +01:00
extras Resolves tdf# 129052 - Misspelled gradient 2019-11-27 11:02:03 +01:00
filter remove some useless comment lines 2019-12-03 12:46:27 +01:00
forms remove some useless comment lines 2019-12-03 12:46:27 +01:00
formula remove some useless comment lines 2019-12-03 12:46:27 +01:00
fpicker remove some useless comment lines 2019-12-03 12:46:27 +01:00
framework enum WindowsStateMask type itself is unused 2019-12-03 15:04:20 +01:00
helpcompiler cid#1448239 unsafe_xml_parse_config 2019-11-22 15:31:07 +01:00
helpcontent2@ccbdf9f943 Update git submodules 2019-12-02 17:22:02 +01:00
hwpfilter cppcheck: performing init in init list (hwpfilter, i., l.) 2019-11-24 21:46:23 +01:00
i18nlangtag Resolves: tdf#129045 add Guadeloupean Creole French [gcf-GP] to language list 2019-11-28 02:43:25 +01:00
i18npool remove some useless comment lines 2019-12-03 12:46:27 +01:00
i18nutil Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
icon-themes Colibre: content tilting 2019-11-28 04:11:07 +01:00
idl Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
idlc Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
include Adapt to C++20 deleted ostream << for sal_Unicode (aka char16_t) 2019-12-03 19:44:37 +01:00
instsetoo_native MSI: Disable creation of system restore points during installation 2019-11-30 14:24:14 +01:00
io cppcheck: performing init in init list (hwpfilter, i., l.) 2019-11-24 21:46:23 +01:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
l10ntools remove some useless comment lines 2019-12-03 12:46:27 +01:00
librelogo
libreofficekit Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
lingucomponent cppcheck: performing init in init list (hwpfilter, i., l.) 2019-11-24 21:46:23 +01:00
linguistic cppcheck: performing init in init list (hwpfilter, i., l.) 2019-11-24 21:46:23 +01:00
lotuswordpro cppcheck: performing init in init list (hwpfilter, i., l.) 2019-11-24 21:46:23 +01:00
m4
nlpsolver
o3tl Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
odk
offapi tdf#108642 load accessibility children faster 2019-11-27 10:28:52 +01:00
officecfg Make OpenCLMinimumDataSize configuration property non-nillable 2019-12-03 09:50:24 +01:00
onlineupdate
oovbaapi Fix typo 2019-11-26 20:01:51 +01:00
oox Simplify a bit use of LabelPlacementParam (oox/chartexport) 2019-12-03 15:30:11 +01:00
opencl Remove unused OpenCLEnv::mpOclCmdQueue 2019-11-26 19:46:06 +01:00
osx
package check crcs when fuzzing after all 2019-11-28 16:51:22 +01:00
pch Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
postprocess tdf#128974: TB Addressbook not available directly as existing database (Win) 2019-11-29 09:10:38 +01:00
pyuno make some classes module-private 2019-11-22 20:31:27 +01:00
qadevOOo
readlicense_oo initial build of the Skia library 2019-11-27 09:55:05 +01:00
registry Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
remotebridges Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
reportbuilder
reportdesign remove some useless comment lines 2019-12-03 12:46:27 +01:00
ridljar
sal SAL_INFO_IF -> SAL_WARN_IF 2019-12-03 19:39:22 +01:00
salhelper
sax Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
sc Drop unnecessary o3tl::optional::reset 2019-12-03 18:46:55 +01:00
scaddins tdf#129098: parameters mixed in OPT_PROB_INMONEY (scaddins) 2019-11-29 20:20:12 +01:00
sccomp Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
schema Remove trailing whitespace 2019-12-03 10:09:59 +01:00
scp2
scripting remove some useless comment lines 2019-12-03 12:46:27 +01:00
sd use scoped enum 2019-12-03 16:28:19 +01:00
sdext Remove unused Dispatch::Action 2019-11-27 08:55:49 +01:00
setup_native loplugin:consttobool (clang-cl) 2019-11-26 16:45:19 +01:00
sfx2 Also throw IllegalArgumentException for arguments of wrong type 2019-12-03 20:22:03 +01:00
shell remove some useless comment lines 2019-12-03 12:46:27 +01:00
slideshow Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
smoketest
solenv unused suppression 2019-12-02 09:52:10 +01:00
soltools
sot cppcheck: performing init in init list (sot/svl/svtools/svx) 2019-11-24 00:26:41 +01:00
starmath remove some useless comment lines 2019-12-03 12:46:27 +01:00
stoc use scoped enum 2019-12-03 16:28:34 +01:00
store cppcheck: performing init in init list (sfx2/slideshow/stoc/store) 2019-11-23 23:38:07 +01:00
svgio Use initializer instead of using several inserts (svgio/svgtoken) 2019-12-03 12:02:55 +01:00
svl remove some useless comment lines 2019-12-03 12:46:27 +01:00
svtools remove some useless comment lines 2019-12-03 12:46:27 +01:00
svx remove some useless comment lines 2019-12-03 12:46:27 +01:00
sw Use o3tl::doAccess, prevent -Werror=maybe-uninitialized 2019-12-03 20:56:29 +01:00
swext
sysui
test Silence false -Werror=maybe-uninitialized 2019-12-03 19:42:51 +01:00
testtools Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
toolkit remove some useless comment lines 2019-12-03 12:46:27 +01:00
tools remove some useless comment lines 2019-12-03 12:46:27 +01:00
translations@6d4072204c
ucb remove some useless comment lines 2019-12-03 12:46:27 +01:00
ucbhelper remove some useless comment lines 2019-12-03 12:46:27 +01:00
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools remove some useless comment lines 2019-12-03 12:46:27 +01:00
unoxml Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
ure
uui Remove nonsense check 2019-11-30 02:50:41 +01:00
vbahelper Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
vcl Use o3tl::doAccess, prevent -Werror=maybe-uninitialized 2019-12-03 20:21:12 +01:00
winaccessibility loplugin:external (clang-cl) 2019-11-26 17:43:53 +01:00
wizards
writerfilter PopFieldContext calls CloseFieldCommand itself 2019-12-03 15:42:37 +01:00
writerperfect Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
xmerge
xmlhelp remove some useless comment lines 2019-12-03 12:46:27 +01:00
xmloff remove some useless comment lines 2019-12-03 12:46:27 +01:00
xmlreader
xmlscript remove some useless comment lines 2019-12-03 12:46:27 +01:00
xmlsecurity boost::optional: replace uses of get_value_or with value_or 2019-12-01 13:58:49 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in split instrinsics CXXFLAGS per each instruction set 2019-12-03 10:43:30 +01:00
config_host_lang.mk.in
configure.ac split instrinsics CXXFLAGS per each instruction set 2019-12-03 10:43:30 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst update Skia to chrome-m79 2019-11-27 09:55:09 +01:00
g
hardened_runtime.xcent
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch initial build of the Skia library 2019-11-27 09:55:05 +01:00
Makefile.gbuild
Makefile.in
README.cross
README.md
README.Solaris
Repository.mk
RepositoryExternal.mk make SkiaSalGraphicsImpl use GPU-backed SkSurface also for offscreen 2019-11-27 09:55:16 +01:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist
setup.cfg
TEMPLATE.SOURCECODE.HEADER

LibreOffice

Coverity Scan Build Status CII Best Practices Translation status

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 2017 version 15.7
  • macOS:
    • Runtime: 10.10
    • Build: 10.13.2 + Xcode 9.3
  • Linux:
    • Runtime: RHEL 7 or CentOS 7
    • Build: either GCC 7.0.0; or Clang 5.0.2 with libstdc++ 7.3.0
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.4 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.3 and iPhone SDK 11.4
  • Android:
    • Build: NDK r19c and SDK 22.6.2

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 5.0.2. 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:

https://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.

Rules for #include directives (C/C++)

Use the "..." form if and only if the included file is found next to the including file. Otherwise, use the <...> form. (For further details, see the mail Re: C[++]: Normalizing include syntax ("" vs <>).)

The UNO API include files should consistently use double quotes, for the benefit of external users of this API.

loplugin:includeform (compilerplugins/clang/includeform.cxx) enforces these rules.

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.