Test repository to check push and ssh key
Find a file
Caolán McNamara f23b9ae6bb cid#1249470 Uninitialized scalar field
use comment as an annotation

Change-Id: Ia8b5ba157d0d240c4a3e6beed74d66e6d34d1a32
Reviewed-on: https://gerrit.libreoffice.org/83067
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-11-18 13:32:07 +01:00
.git-hooks
.github
accessibility loplugin:singlevalfields 2019-11-16 20:19:54 +01:00
android android: keep float for row/column dimensions to unbreak build 2019-11-15 18:14:58 +01:00
animations
apple_remote
avmedia loplugin:fakebool and loplugin:consttobool (macOS) 2019-11-15 19:29:54 +01:00
basctl cid#1421106 Useless call 2019-11-18 11:30:23 +01:00
basegfx
basic Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
bean cid#1448230 Dereference null return value 2019-11-17 20:08:23 +01:00
bin bin/run: missing exedir for macOS 2019-11-17 13:16:13 +01:00
binaryurp
bridges Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
canvas
chart2 Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
cli_ure
codemaker
comphelper cid#1421069 Useless call 2019-11-18 11:30:11 +01:00
compilerplugins Fix typos 2019-11-17 08:32:34 +01:00
config_host
configmgr use std::move when popping stuff off stacks 2019-11-12 13:59:50 +01:00
connectivity make some classes module-private 2019-11-15 08:13:06 +01:00
cppcanvas
cppu
cppuhelper
cpputools
cui Paragraph Align Tab fix 2019-11-18 08:34:18 +01:00
dbaccess make some classes module-private 2019-11-15 08:13:06 +01:00
desktop Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
dictionaries@4fb010374f Update git submodules 2019-11-13 00:44:49 +01:00
distro-configs
drawinglayer Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
dtrans Fix typo 2019-11-11 09:38:03 +01:00
editeng cid#1430104 Arguments in wrong order 2019-11-17 20:25:25 +01:00
embeddedobj
embedserv
emfio
eventattacher
extensions Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
external CVE-2019-16707 2019-11-13 09:55:10 +01:00
extras tdf#114746 Restore asian and complex tags in Classy_Red template 2019-11-14 19:16:18 +01:00
filter cid#1430070 Copy-paste error 2019-11-18 10:02:15 +01:00
forms Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
formula
fpicker loplugin:singlevalfields 2019-11-18 09:49:14 +01:00
framework Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
helpcompiler
helpcontent2@4ad79a357b Update git submodules 2019-11-14 21:47:29 +01:00
hwpfilter
i18nlangtag
i18npool
i18nutil
icon-themes
idl
idlc
include convert AccessibilityFlowTo to scoped enum 2019-11-18 11:15:48 +01:00
instsetoo_native User interface languages: At least one is required 2019-11-11 16:11:34 +01:00
io
ios
javaunohelper Extend loplugin:salbool to loplugin:fakebool 2019-11-13 15:06:42 +01:00
jurt cid#1448367 Explicit null dereferenced 2019-11-17 18:12:41 +01:00
jvmaccess
jvmfwk
l10ntools Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
librelogo
libreofficekit New loplugin:consttobool 2019-11-14 19:53:53 +01:00
lingucomponent
linguistic Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
lotuswordpro
m4
nlpsolver
o3tl Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
odk cid#706181 Use of untrusted string value 2019-11-17 20:46:33 +01:00
offapi convert AccessibilityFlowTo to scoped enum 2019-11-18 11:15:48 +01:00
officecfg Add ChartTypePanel to the ChartDeck 2019-11-14 21:13:19 +01:00
onlineupdate
oovbaapi
oox Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
opencl
osx
package do not clean up EncryptionData during SaveAs 2019-11-15 12:50:38 +01:00
pch
postprocess
pyuno
qadevOOo Fix typo 2019-11-17 08:44:14 +01:00
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign no need to store reference to Import here 2019-11-13 10:26:35 +01:00
ridljar
sal Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
salhelper
sax Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
sc cid#1249470 Uninitialized scalar field 2019-11-18 13:32:07 +01:00
scaddins
sccomp
schema
scp2 User interface languages: At least one is required 2019-11-11 16:11:34 +01:00
scripting
sd convert AccessibilityFlowTo to scoped enum 2019-11-18 11:15:48 +01:00
sdext tdf#42949 Fix IWYU warnings in sdext/ 2019-11-13 09:45:38 +01:00
setup_native
sfx2 only need xTransform if we have xRecorder 2019-11-17 18:12:22 +01:00
shell tdf#128538: Open filesystem directories in Finder after all 2019-11-15 09:44:28 +01:00
slideshow use std::move when popping stuff off stacks 2019-11-12 13:59:50 +01:00
smoketest
solenv sort items 2019-11-16 18:06:25 +01:00
soltools cid#1448469 Out-of-bounds access 2019-11-18 10:01:42 +01:00
sot
starmath Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
stoc
store
svgio
svl Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
svtools loplugin:singlevalfields 2019-11-18 09:49:14 +01:00
svx convert AccessibilityFlowTo to scoped enum 2019-11-18 11:15:48 +01:00
sw cid#1421107 Useless call 2019-11-18 13:30:10 +01:00
swext
sysui
test
testtools
toolkit make some classes module-private 2019-11-15 08:13:06 +01:00
tools Don't compile cpuid test with INTRINSICS_CXXFLAGS 2019-11-11 22:21:38 +01:00
translations@6d4072204c Update git submodules 2019-11-13 15:27:23 +01:00
ucb Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
ucbhelper
udkapi
uitest
UnoControls Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
unodevtools
unoidl
unoil
unotest
unotools Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
unoxml
ure
uui Better throw RuntimeException than assert here 2019-11-12 14:50:25 +01:00
vbahelper
vcl widget theme: correct sizes of combobox/listbox 2019-11-18 07:15:00 +01:00
winaccessibility
wizards Fix 'is' operator for comparison 2019-11-18 10:15:07 +01:00
writerfilter Also consider saved exceptions when terminating parse 2019-11-16 20:13:40 +01:00
writerperfect clang-format: don't fix up namespace comments 2019-11-14 08:30:47 +01:00
xmerge
xmlhelp
xmloff Extend loplugin:external to warn about enums 2019-11-17 00:28:17 +01:00
xmlreader
xmlscript
xmlsecurity make some classes module-private 2019-11-15 08:13:06 +01:00
.buckconfig
.buckversion
.clang-format clang-format: don't fix up namespace comments 2019-11-14 08:30:47 +01:00
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in
config_host_lang.mk.in
configure.ac --with-windows-sdk: correct parameter is 10.0, not 10 2019-11-14 04:27:16 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst external: update pdfium to 3963 2019-11-13 09:02:30 +01:00
g
hardened_runtime.xcent
install-sh
leak-suppress.txt fix doc 2019-11-13 06:13:09 +01:00
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.md
README.Solaris
Repository.mk
RepositoryExternal.mk
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.