Test repository to check push and ssh key
Find a file
Stephan Bergmann 2d6df9bc36 Use [[fallthrough]] also with MSVC
Change-Id: I840de9460c164b86dcbd96b4c0f382e1a1b609a2
Reviewed-on: https://gerrit.libreoffice.org/60330
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-09-11 22:39:16 +02:00
.git-hooks
accessibility loplugin:simplifyconstruct in accessibility..bridges 2018-09-05 09:28:12 +02:00
android
animations loplugin:simplifyconstruct in accessibility..bridges 2018-09-05 09:28:12 +02:00
apple_remote
avmedia loplugin:includeform 2018-09-11 07:31:05 +02:00
basctl Revert "clang bugprone-unused-return-value" 2018-09-11 15:18:26 +02:00
basegfx cppcheck: variableScope in basegfx 2018-09-11 15:00:23 +02:00
basic tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
bean
bin
binaryurp Revert "clang bugprone-unused-return-value" 2018-09-11 15:18:26 +02:00
bridges loplugin:simplifyconstruct in accessibility..bridges 2018-09-05 09:28:12 +02:00
canvas No more need for extra local variables 2018-09-10 16:23:59 +02:00
chart2 tdf#108028 OOXML: Fix line breaking of chart title 2018-09-11 09:56:19 +02:00
cli_ure
codemaker Revert "clang bugprone-unused-return-value" 2018-09-11 15:18:26 +02:00
comphelper clang-tidy bugprone-copy-constructor-init 2018-09-11 08:19:00 +02:00
compilerplugins loplugin:unusedfields 2018-09-11 18:18:12 +02:00
config_host Use [[fallthrough]] also with MSVC 2018-09-11 22:39:16 +02:00
configmgr clang-tidy performance-inefficient-vector-operation 2018-09-05 09:28:27 +02:00
connectivity -Werror,-Wunused-macros (clang-cl) 2018-09-11 22:38:50 +02:00
cppcanvas loplugin:simplifyconstruct in canvas..cui 2018-09-06 14:38:52 +02:00
cppu Fix for --enable-debug --disable-assert-always-abort 2018-09-10 12:58:24 +02:00
cppuhelper tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
cpputools
cui weld SvxNumPositionTabPage 2018-09-11 09:57:26 +02:00
dbaccess loplugin:unusedfields 2018-09-11 09:39:44 +02:00
desktop Generate UNO exception classes as SAL_WARN_UNUSED 2018-09-10 14:49:23 +02:00
dictionaries@5b81821a17 Update git submodules 2018-09-05 10:30:45 +02:00
distro-configs Adapt solenv/flatpak-manifest.in to recent changes 2018-09-03 21:59:59 +02:00
drawinglayer loplugin:simplifyconstruct in dbaccess..drawinglayer 2018-09-06 14:37:11 +02:00
dtrans tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
editeng clang-tidy bugprone-copy-constructor-init 2018-09-11 08:19:00 +02:00
embeddedobj tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
embedserv tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
emfio
eventattacher loplugin:simplifyconstruct in editeng..extensions 2018-09-08 14:45:11 +02:00
extensions loplugin:stringbuffer (clang-cl) 2018-09-11 19:12:28 +02:00
external ofz#10100 use --disable-release to avoid icu adding extra link flags 2018-09-09 16:56:10 +02:00
extras weld SvxShadowTabPage 2018-09-09 22:27:44 +02:00
filter tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
forms tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
formula loplugin:simplifyconstruct in filter..framework 2018-09-08 19:28:19 +02:00
fpicker WIN drop unused fpicker subdirs 2018-09-11 18:05:35 +02:00
framework tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
helpcompiler loplugin:simplifyconstruct in helpcompiler..io 2018-09-09 08:18:01 +02:00
helpcontent2@ca3fd055cb Update git submodules 2018-09-10 12:34:32 +02:00
hwpfilter tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
i18nlangtag
i18npool tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
i18nutil
icon-themes elementary: Add more 32 px, update folder icons, many *dialog, etc 2018-09-09 10:33:52 +02:00
idl loplugin:simplifyconstruct in helpcompiler..io 2018-09-09 08:18:01 +02:00
idlc loplugin:simplifyconstruct in helpcompiler..io 2018-09-09 08:18:01 +02:00
include Use [[fallthrough]] also with MSVC 2018-09-11 22:39:16 +02:00
instsetoo_native
io tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
ios Don't copy files into the source directory, use workdir 2018-09-05 21:57:59 +03:00
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools loplugin:simplifyconstruct in l10ntools..package 2018-09-09 19:40:02 +02:00
librelogo
libreofficekit Replace find_if with proper quantifier algorithms 2018-09-08 14:46:08 +02:00
lingucomponent tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
linguistic tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
lotuswordpro loplugin:simplifyconstruct in l10ntools..package 2018-09-09 19:40:02 +02:00
m4
nlpsolver
o3tl clang-tidy bugprone-use-after-move 2018-09-08 13:19:26 +02:00
odk tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
offapi
officecfg KJ: +more missing Calc NB icons, Calc menu, Writer menu, etc 2018-09-08 23:08:54 +02:00
onlineupdate Rename online updater functions and strcmp relpath 2018-09-10 11:23:06 +02:00
oovbaapi
oox tdf#119617 Fix export of Autofit property of shapes to PPTX 2018-09-11 09:55:39 +02:00
opencl
osx
package Revert "clang bugprone-unused-return-value" 2018-09-11 15:18:26 +02:00
postprocess
pyuno DeInitVCL in PythonTest 2018-09-07 07:31:48 +02:00
qadevOOo tdf#45904 Move _XMergeable Java Tests to C++ 2018-09-10 02:03:10 +02:00
readlicense_oo update credits 2018-09-07 15:40:18 +02:00
registry Revert "clang bugprone-unused-return-value" 2018-09-11 15:18:26 +02:00
remotebridges
reportbuilder
reportdesign loplugin:simplifyconstruct in reportdesign..sax 2018-09-10 11:34:25 +02:00
ridljar
sal loplugin:simplifyconstruct in reportdesign..sax 2018-09-10 11:34:25 +02:00
salhelper Drop workaround for old MSVC that no longer appears necessary with MSVC 2017 2018-09-07 20:07:45 +02:00
sax loplugin:simplifyconstruct in reportdesign..sax 2018-09-10 11:34:25 +02:00
sc tdf#119305 Chart created from fully selected sheet only targets header row 2018-09-11 20:29:04 +02:00
scaddins loplugin:simplifyconstruct in scaddins..sd 2018-09-10 11:03:26 +02:00
sccomp loplugin:useuniqueptr in CoinMPSolver 2018-09-07 11:07:05 +02:00
schema
scp2 package Indonesian (id) dictionaries into installset 2018-09-01 08:49:58 +02:00
scripting loplugin:simplifyconstruct in scaddins..sd 2018-09-10 11:03:26 +02:00
sd Revert "clang bugprone-unused-return-value" 2018-09-11 15:18:26 +02:00
sdext loplugin:unusedmethods 2018-09-11 14:01:00 +02:00
setup_native package Indonesian (id) dictionaries into installset 2018-09-01 08:49:58 +02:00
sfx2 loplugin:unusedfields 2018-09-11 18:18:12 +02:00
shell tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
slideshow tdf#119146: fix populating maCurrentSubsets 2018-09-03 22:25:35 +02:00
smoketest
solenv WIN drop unused fpicker subdirs 2018-09-11 18:05:35 +02:00
soltools
sot loplugin:simplifyconstruct in sfx2..starmath 2018-09-10 12:24:50 +02:00
starmath a11y: Fix multiple instances of duplicate mnemonics 2018-09-10 19:49:38 +02:00
stoc tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
store
svgio
svl clang-tidy bugprone-copy-constructor-init 2018-09-11 08:19:00 +02:00
svtools loplugin:simplifyconstruct in svtools..svx 2018-09-11 18:17:58 +02:00
svx loplugin:unusedfields 2018-09-11 18:18:12 +02:00
sw loplugin:unusedmethods 2018-09-11 14:01:00 +02:00
swext
sysui
test tdf#45904 Move _XMergeable Java Tests to C++ 2018-09-10 02:03:10 +02:00
testtools tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
toolkit tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
tools clang-tidy performance-unnecessary-value-param 2018-09-06 09:54:25 +02:00
translations@54cc0de67b
ucb Revert "clang bugprone-unused-return-value" 2018-09-11 15:18:26 +02:00
ucbhelper
udkapi
uitest
UnoControls clang-tidy bugprone-copy-constructor-init 2018-09-11 08:19:00 +02:00
unodevtools
unoidl clang-tidy bugprone-unused-return-value 2018-09-08 08:45:51 +02:00
unoil
unotest DeInitVCL in PythonTest 2018-09-07 07:31:48 +02:00
unotools clang-tidy bugprone-copy-constructor-init 2018-09-11 08:19:00 +02:00
unoxml tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
ure
uui
vbahelper tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
vcl loplugin:unnecessaryoverride (clang-cl) 2018-09-11 20:20:29 +02:00
winaccessibility
wizards Fix typos 2018-09-08 08:53:12 +02:00
writerfilter ofz#10228 Integer-overflow 2018-09-11 13:17:31 +02:00
writerperfect
xmerge
xmlhelp loplugin:useuniqueptr in xmlhelp 2018-09-08 17:50:13 +02:00
xmloff tdf#109229: Set "TextBox" prop before filling textbox-related props 2018-09-11 06:03:24 +02:00
xmlreader
xmlscript loplugin:useuniqueptr in DocumentHandlerImpl 2018-09-05 09:31:40 +02:00
xmlsecurity tdf#42949 Fix IWYU warnings in include/cppuhelper/* 2018-09-10 09:58:12 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in
config_host_lang.mk.in
configure.ac Use [[fallthrough]] also with MSVC 2018-09-11 22:39:16 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst upgrade curl to 7.61.1 2018-09-05 21:30:55 +02:00
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch tdf#79022 - Please bundle Source Serif Pro 2018-09-03 09:04:46 +02:00
Makefile.gbuild
Makefile.in Work around "find: The environment is too large for exec()" errors on Windows 2018-09-10 11:17:14 +02:00
README.cross
README.md
README.Solaris
Repository.mk weld SvxAreaTabPage 2018-09-03 18:25:52 +02:00
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist
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 2017
  • macOS:
    • Runtime: 10.9
    • Build: 10.12 + Xcode 8
  • Linux:
    • Runtime: RHEL 6 or CentOS 6
    • Build: GCC 4.8.1 or Clang
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.4 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.3 and iPhone SDK 11.4

At least Clang 3.4.2 is known to be too old to pass the configure.ac check "whether $CXX supports C++17, C++14, or C++11" in its current form (due to the #pragma GCC diagnostic ignored "-Wpragmas" that it does not understand).

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

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.