Test repository to check push and ssh key
Find a file
Stephan Bergmann 23b384ee3b Silence -Werror,-Wuninitialized
...as seen with "Android (5220042 based on r346389c) clang version 8.0.7
(https://android.googlesource.com/toolchain/clang
b55f2d4ebfd35bf643d27dbca1bb228957008617)
(https://android.googlesource.com/toolchain/llvm
3c393fe7a7e13b0fba4ac75a01aa683d7a5b11cd) (based on LLVM 8.0.7svn)", warning
about functionIndex, vtableOffset, and indirectRet being used "uninitialized"
(but which is as intended, carrying over the values those registers have upon
entry to the function)

Change-Id: I443fe2e8bf7c25a5bd2bfd99c245d430be65f445
Reviewed-on: https://gerrit.libreoffice.org/85400
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-12-18 18:10:44 +01:00
.git-hooks
.github
accessibility
android tdf#115698 android: Don't modify doc on color palette initialization 2019-12-12 14:30:57 +01:00
animations
apple_remote
avmedia sal_Char->char in avmedia..basic 2019-12-18 12:23:44 +01:00
basctl sal_Char->char in avmedia..basic 2019-12-18 12:23:44 +01:00
basegfx sal_Char->char in avmedia..basic 2019-12-18 12:23:44 +01:00
basic sal_Char->char in avmedia..basic 2019-12-18 12:23:44 +01:00
bean
bin Fix typos 2019-12-17 18:17:10 +01:00
binaryurp
bridges Silence -Werror,-Wuninitialized 2019-12-18 18:10:44 +01:00
canvas sal_Char->char in canvas..codemaker 2019-12-18 14:18:55 +01:00
chart2 sal_Char->char in canvas..codemaker 2019-12-18 14:18:55 +01:00
cli_ure
codemaker sal_Char->char in canvas..codemaker 2019-12-18 14:18:55 +01:00
comphelper
compilerplugins Avoid false positive lopluign:vclwidgets warning 2019-12-17 13:22:04 +01:00
config_host Rename HAVE_GCC_BUG_87150 to HAVE_P1155R3 2019-12-14 13:40:18 +01:00
configmgr
connectivity Elide use of rtl_Instance (which is obsoleted by C++11 thread-safe statics) 2019-12-18 08:00:44 +01:00
cppcanvas sal_Char->char in cppcanvas..cui 2019-12-18 17:40:23 +01:00
cppu sal_Char->char in cppcanvas..cui 2019-12-18 17:40:23 +01:00
cppuhelper sal_Char->char in cppcanvas..cui 2019-12-18 17:40:23 +01:00
cpputools sal_Char->char in cppcanvas..cui 2019-12-18 17:40:23 +01:00
cui sal_Char->char in cppcanvas..cui 2019-12-18 17:40:23 +01:00
dbaccess sal_Char->char in dbaccess 2019-12-18 17:40:48 +01:00
desktop sfx2: sidebar: new .uno commands to show and hide sidebars 2019-12-16 17:30:01 +00:00
dictionaries@4fb010374f
distro-configs
drawinglayer Fix debug build after 7732444c5d 2019-12-18 08:49:10 +01:00
dtrans
editeng Fix typo 2019-12-17 18:24:23 +01:00
embeddedobj Fix typo 2019-12-14 23:00:40 +01:00
embedserv
emfio
eventattacher
extensions Remove unused exception imports from updatefeed.cxx 2019-12-18 08:04:19 +01:00
external Enable -Wdeprecated-copy-dtor where available 2019-12-12 22:00:31 +01:00
extras Revert "Make font-based unit test depend on instdir fonts" 2019-12-16 12:58:35 +01:00
filter tdf#42949 Fix IWYU warnings in filter/ 2019-12-17 10:32:33 +01:00
forms loplugin:expandablemethods 2019-12-13 08:12:45 +01:00
formula
fpicker
framework Elide use of rtl_Instance (which is obsoleted by C++11 thread-safe statics) 2019-12-17 10:06:30 +01:00
helpcompiler
helpcontent2@9f10d6a9ed Update git submodules 2019-12-18 07:08:40 +01:00
hwpfilter
i18nlangtag
i18npool
i18nutil
icon-themes Colibre icon remove symbolic link from colibre-svg icons 2019-12-18 08:36:58 +01:00
idl
idlc
include sal_Char->char in dbaccess 2019-12-18 17:40:48 +01:00
instsetoo_native tdf#128991 Make clear in the help installer 2019-12-11 15:51:37 +01:00
io Fix typo 2019-12-12 04:14:02 +01:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk unused #include 2019-12-16 12:59:09 +01:00
l10ntools
librelogo
libreofficekit
lingucomponent loplugin:expandablemethods 2019-12-13 08:12:45 +01:00
linguistic loplugin:duplicate-defines 2019-12-18 08:02:21 +01:00
lotuswordpro
m4
nlpsolver
o3tl
odk Fix instructions for setting up the SDK 2019-12-18 13:03:59 +01:00
offapi Don't deprecate XKeyListener and XMouseListener 2019-12-16 11:11:39 +01:00
officecfg tdf#128683 Add More Options button to Table section in Writer's Sidebar 2019-12-18 11:03:34 +01:00
onlineupdate
oovbaapi
oox tdf#129143 FILESAVE: PPTX: bullets have a black border after RT 2019-12-17 09:25:17 +01:00
opencl pickBestDevice return is ignored 2019-12-11 21:13:51 +01:00
osx
package
pch
postprocess Revert "Make font-based unit test depend on instdir fonts" 2019-12-16 12:58:35 +01:00
pyuno
qadevOOo
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign loplugin:duplicate-defines 2019-12-18 09:18:23 +01:00
ridljar
sal
salhelper
sax
sc Resolves: tdf#129396 Refresh shared formula group area listeners upon shifting 2019-12-18 01:55:02 +01:00
scaddins Remove some redundant user-provided dtors 2019-12-12 14:35:24 +01:00
sccomp
schema
scp2
scripting
sd Make disabled PDF import tests compile again 2019-12-17 19:40:26 +01:00
sdext
setup_native
sfx2 tdf#42949 Fix IWYU warnings in sfx2/source/appl/*cxx 2019-12-18 10:38:21 +01:00
shell
slideshow Fix typo 2019-12-17 18:15:33 +01:00
smoketest
solenv unused supression 2019-12-18 16:56:13 +01:00
soltools
sot
starmath make approximate_char_width private and use approximate_digit_width 2019-12-17 13:35:43 +01:00
stoc
store
svgio
svl Elide use of rtl_Instance (which is obsoleted by C++11 thread-safe statics) 2019-12-17 10:15:03 +01:00
svtools loplugin:unusedmethods 2019-12-13 08:12:34 +01:00
svx tdf#127481: reset active cell reference during table copy 2019-12-18 17:48:38 +01:00
sw Resolves: tdf#129444 relabel the insert bibliography entry sections 2019-12-18 17:13:06 +01:00
swext
sysui
test
testtools
toolkit
tools tools: define DbgTestSolarMutex() unconditionally 2019-12-18 15:04:12 +01:00
translations@6d4072204c
ucb loplugin:duplicate-defines 2019-12-18 08:27:22 +01:00
ucbhelper
udkapi
uitest Fix typo 2019-12-14 22:40:23 +01:00
UnoControls
unodevtools
unoidl
unoil
unotest
unotools loplugin:expandablemethods 2019-12-17 08:59:30 +01:00
unoxml
ure
uui tdf#129311 don't allow temporary trusted certs 2019-12-17 11:59:08 +01:00
vbahelper
vcl load images by explicit type 2019-12-18 17:39:01 +01:00
winaccessibility
wizards
writerfilter sw RTF export: don't mark these members as const 2019-12-18 09:05:01 +01:00
writerperfect writerperfect[libwps,tdf#128673]: use the inFilter option in headless mode... 2019-12-18 08:03:42 +01:00
xmerge
xmlhelp loplugin:unusedmethods 2019-12-13 08:12:34 +01:00
xmloff loplugin:expandablemethods 2019-12-13 08:12:45 +01:00
xmlreader
xmlscript
xmlsecurity Elide use of rtl_Instance (which is obsoleted by C++11 thread-safe statics) 2019-12-18 08:47:42 +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 Enable -Wdeprecated-copy-dtor where available 2019-12-12 22:00:31 +01:00
config_host_lang.mk.in
configure.ac Fix typos concerning the __cxa_exception check 2019-12-18 13:54:27 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst update Skia to chrome/m80 2019-12-12 11:01:41 +01:00
g
hardened_runtime.xcent
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.md
README.Solaris
Repository.mk Revert "Make font-based unit test depend on instdir fonts" 2019-12-16 12:58:35 +01:00
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk Revert "Make font-based unit test depend on instdir fonts" 2019-12-16 12:58:35 +01:00
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.