Test repository to check push and ssh key
Find a file
Caolán McNamara 4faafea4f2 give better warning explanation
Change-Id: If76e1acdcb601d70c956bcaf0392046430f4853e
Reviewed-on: https://gerrit.libreoffice.org/67086
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-01-29 18:01:33 +01:00
.git-hooks git hooks: Tell what to do in another problematic submodules case. 2018-11-22 11:53:07 +01:00
accessibility tdf#42949 Fix remaining IWYU warnings in include/vcl/* 2019-01-18 09:09:22 +01:00
android Fix typo 2019-01-25 07:04:56 +01:00
animations New loplugin:external 2018-09-17 09:05:38 +02:00
apple_remote
avmedia convert "*xxx.get()" to "*xxx" 2019-01-08 10:38:35 +01:00
basctl loplugin:constparams in basctl..chart2 2019-01-24 07:46:23 +01:00
basegfx b2dpolygontools: removing debug code, doesn't seem to be useful 2019-01-29 11:01:45 +01:00
basic Fix typo 2019-01-27 09:46:25 +01:00
bean Fix typo 2019-01-28 09:16:24 +01:00
bin give better warning explanation 2019-01-29 18:01:33 +01:00
binaryurp Use C++17 nested namespace definitions (in binaryurp) 2019-01-14 15:28:21 +01:00
bridges o3tl::make_unique -> std::make_unique in basctl...bridges 2019-01-16 07:20:49 +01:00
canvas loplugin:constparams in basctl..chart2 2019-01-24 07:46:23 +01:00
chart2 tdf#123013: Allow to change trendline name in gtk3 2019-01-29 09:54:23 +01:00
cli_ure fix signatures of deleted copy/assign operators 2018-11-02 07:03:08 +01:00
codemaker Remove obsolete SAL_FALLTHROUGH completely 2018-12-08 13:28:16 +01:00
comphelper rhbz#1667364 Open doc as R/O for which open(...,O_RDWR) returns EOPNOTSUPP 2019-01-23 21:06:31 +01:00
compilerplugins loplugin:unusedmethods 2019-01-25 08:07:40 +01:00
config_host kde5: remove older kde/tde plugins, and references to that 2018-12-17 18:33:13 +01:00
configmgr Replace uses of rtl/instance.hxx with plain local static vars in configmgr 2019-01-16 09:20:26 +01:00
connectivity tdf#106463 set new firebird connections as autocommit by default 2019-01-29 08:42:19 +01:00
cppcanvas convert "*xxx.get()" to "*xxx" 2019-01-08 10:38:35 +01:00
cppu cppu: fix Android build 2019-01-29 15:59:56 +01:00
cppuhelper Do not use indexed getToken for a single call 2018-12-28 17:07:29 +01:00
cpputools Reduce OUString operations and use indexed getToken 2018-12-28 17:10:16 +01:00
cui Resolves: tdf#122992 allow pre-selected fonts not in the font list 2019-01-28 22:09:06 +01:00
dbaccess dbaccess: don't try to migrate read-only file 2019-01-29 12:19:43 +01:00
desktop lok: don't crash in simple LOK use-case with no callback. 2019-01-25 22:21:23 +01:00
dictionaries@6811c96b9d Update git submodules 2019-01-20 20:38:14 +01:00
distro-configs aarch64 and arm need libatomic_ops 2019-01-28 12:38:41 +01:00
drawinglayer o3tl::make_unique -> std::make_unique in dbaccess...framework 2019-01-21 07:36:04 +01:00
dtrans Fix typos 2018-11-16 23:33:04 +01:00
editeng tdf#42949 Fix IWYU warnings in include/xmloff/* 2019-01-22 09:27:34 +01:00
embeddedobj Clean up dead uses of DISABLE_ATL 2019-01-24 21:23:56 +01:00
embedserv Clean up dead uses of DISABLE_ATL 2019-01-24 21:23:56 +01:00
emfio o3tl::make_unique -> std::make_unique in dbaccess...framework 2019-01-21 07:36:04 +01:00
eventattacher New loplugin:external 2018-09-17 09:05:38 +02:00
extensions SAL_INFO also for parameter names that are not found 2019-01-21 17:34:31 +02:00
external libgpg-error: use custom soname and symbol version 2019-01-28 23:54:56 +01:00
extras [pt_PT] Added 24 words to autocorrect 2018-12-27 11:16:36 +01:00
filter ofz#11104 for timeouts, limit decompression ratios when fuzzing 2019-01-29 09:53:54 +01:00
forms fix load/save of forms with HAVING 2019-01-24 18:25:10 +01:00
formula o3tl::make_unique -> std::make_unique in dbaccess...framework 2019-01-21 07:36:04 +01:00
fpicker tdf#122927 prevent SolarMutex deadlock on join() 2019-01-25 16:04:25 +01:00
framework framework: avoid crashing in ~HandlerCFGAccess() in atexit() 2019-01-29 12:19:57 +01:00
helpcompiler remove unnecessary "if (!empty()" checks before loops 2018-11-29 07:17:37 +01:00
helpcontent2@622324ec76 Update git submodules 2019-01-28 23:27:50 +01:00
hwpfilter loplugin:constparams in dbaccess..oox 2019-01-24 07:46:46 +01:00
i18nlangtag Turn LanguageTag::ScriptType into scoped enum 2018-10-20 10:39:28 +02:00
i18npool Use std::string instead of fixed-size array to hold string 2019-01-22 19:51:47 +01:00
i18nutil Fix typo in code 2018-12-20 08:49:50 +01:00
icon-themes Sifr icon: add cmd/32px svg icons and update the png output 2019-01-29 08:20:18 +01:00
idl o3tl::make_unique -> std::make_unique in i18npool...reportdesign 2019-01-22 08:38:28 +01:00
idlc o3tl::make_unique -> std::make_unique in i18npool...reportdesign 2019-01-22 08:38:28 +01:00
include sc: fix CppunitTest_sc_ddelinkobj to copy its test document 2019-01-29 17:02:17 +01:00
instsetoo_native tdf#122302: Set status message when installing KB2999226 2018-12-24 09:25:12 +01:00
io use unique_ptr in io 2018-12-19 07:04:51 +01:00
ios Drop unnecessary gb_DEBUG_CFLAGS 2019-01-24 11:25:03 +01:00
javaunohelper HTML tt -> code in JavaDoc comments 2018-10-10 17:26:26 +02:00
jurt Rename Mac OS X to official name macOS in comments and documentation 2018-11-29 14:08:26 +01:00
jvmaccess
jvmfwk Silence bogus -Werror=clobbered (GCC 7 --enable-optimized) 2019-01-22 09:05:43 +01:00
l10ntools loplugin:stringconstant look for unnecessary OString constructor use 2018-11-29 09:57:15 +01:00
librelogo Adapt LibreLogo.py to Python 3.7 re.sub change 2018-11-08 11:03:41 +01:00
libreofficekit lok: calm down CnP issues & simplify. 2019-01-25 22:21:35 +01:00
lingucomponent o3tl::make_unique -> std::make_unique in i18npool...reportdesign 2019-01-22 08:38:28 +01:00
linguistic tdf#42949 Fix IWYU warnings in include/xmloff/* 2019-01-22 09:27:34 +01:00
lotuswordpro o3tl::make_unique -> std::make_unique in i18npool...reportdesign 2019-01-22 08:38:28 +01:00
m4
nlpsolver
o3tl array_view was changed to span in upcoming C++20 2019-01-13 11:27:30 +01:00
odk odk: CustomTarget_build-examples hard-codes on "gcc" and "g++" 2019-01-29 16:42:38 +01:00
offapi sw paste listener: expose pasted images as well 2019-01-24 20:57:29 +01:00
officecfg Make the text on Redaction toolbar buttons visible 2019-01-26 23:52:42 +01:00
onlineupdate Rename Mac OS X to official name macOS in comments and documentation 2018-11-29 14:08:26 +01:00
oovbaapi Add WordBasic.FileClose() 2019-01-24 00:33:14 +02:00
oox Replace macros with their payload 2019-01-29 11:27:37 +01:00
opencl Replace OUStringBuffer::appendCopy with append(std::u16string_view) 2019-01-11 13:55:14 +01:00
osx Rename Mac OS X to official name macOS in comments and documentation 2018-11-29 14:08:26 +01:00
package o3tl::make_unique -> std::make_unique in i18npool...reportdesign 2019-01-22 08:38:28 +01:00
postprocess Clean up dead uses of DISABLE_ATL 2019-01-24 21:23:56 +01:00
pyuno replace double-checked locking patterns with thread safe local statics 2018-11-04 14:46:01 +01:00
qadevOOo tdf#45904 Move XPropertySet Java tests to C++ 2019-01-29 07:08:44 +01:00
readlicense_oo It's called libatomic_ops not libatomic-ops 2019-01-28 15:19:52 +01:00
registry Replace OUStringBuffer::appendCopy with append(std::u16string_view) 2019-01-11 13:55:14 +01:00
remotebridges New loplugin:external 2018-09-17 09:05:38 +02:00
reportbuilder Resolves: tdf#94446 if this is a SQLException in disguise, throw that instead 2018-11-28 13:11:20 +01:00
reportdesign tdf#42949 Fix IWYU warnings in include/xmloff/* 2019-01-22 09:27:34 +01:00
ridljar
sal rhbz#1667364 Open doc as R/O for which open(...,O_RDWR) returns EOPNOTSUPP 2019-01-23 21:06:31 +01:00
salhelper tdf#42949 Fix IWYU warnings in salhelper/ 2019-01-09 08:41:50 +01:00
sax o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
sc sc: fix CppunitTest_sc_ddelinkobj to copy its test document 2019-01-29 17:02:17 +01:00
scaddins Simplify containers iterations in scaddins, sccomp, scripting 2018-12-20 08:15:54 +01:00
sccomp Fix order of CPPUNIT_ASSERT_EQUAL expected vs. actual arguments 2019-01-24 21:23:24 +01:00
schema address forward incompatibility of InputRequired default change 2018-12-13 19:49:37 +01:00
scp2 tdf#122302: Set status message when installing KB2999226 2018-12-24 09:25:12 +01:00
scripting o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
sd o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
sdext o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
setup_native Small corrections to strings 2019-01-16 15:09:33 +01:00
sfx2 o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
shell o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
slideshow Drop o3tl/clamp.hxx, use C++17 std::clamp instead 2019-01-11 20:25:08 +01:00
smoketest tdf#120703 PVS: V560 A part of conditional expression is always true/false 2018-11-25 16:52:30 +01:00
solenv Remove some kde4 leftovers 2019-01-29 09:53:49 +01:00
soltools loplugin:unnecessaryparen include more assignments 2018-12-05 07:49:30 +01:00
sot remove unused SotExchangeActionFlags enum values 2018-12-05 08:00:11 +01:00
starmath o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
stoc loplugin:flatten in stoc..store 2019-01-29 07:11:04 +01:00
store loplugin:flatten in stoc..store 2019-01-29 07:11:04 +01:00
svgio loplugin:flatten in svgio 2019-01-29 07:11:12 +01:00
svl Resolves: tdf#122991 do not truncate time duration [] format values 2019-01-28 20:02:23 +01:00
svtools o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
svx Improve ODF enhanced-path command moveTo to follow spec 2019-01-29 01:16:51 +01:00
sw Resolves: tdf#110429 width of page number wider than traditional width 2019-01-29 15:21:52 +01:00
swext Help files: http -> https 2018-11-15 04:50:23 +01:00
sysui kde5: remove older kde/tde plugins, and references to that 2018-12-17 18:33:13 +01:00
test sc: fix CppunitTest_sc_ddelinkobj to copy its test document 2019-01-29 17:02:17 +01:00
testtools Fix typos 2018-11-19 08:34:08 +01:00
toolkit Replace macro with template 2019-01-23 13:25:53 +01:00
tools Disable test for Linux x86 CXXFLAGS=-O1 corner case 2019-01-25 14:16:52 +01:00
translations@46a65ed743 Update git submodules 2018-12-19 18:09:48 +01:00
ucb loplugin:constparams in ucb..xmlhelp 2019-01-24 13:02:31 +01:00
ucbhelper Remove obsolete SAL_FALLTHROUGH completely 2018-12-08 13:28:16 +01:00
udkapi Fix typo 2018-12-26 09:07:24 +01:00
uitest eliminate some noise from uitest failure 2019-01-16 09:12:19 +01:00
UnoControls Fix typos 2018-11-09 07:05:30 +01:00
unodevtools Take advantage of known index to avoid an OUString copy 2019-01-27 16:03:44 +01:00
unoidl Remove obsolete SAL_FALLTHROUGH completely 2018-12-08 13:28:16 +01:00
unoil
unotest tdf#42949 Fix IWYU warnings in include/comphelper/[m-z]* 2018-10-08 12:16:44 +02:00
unotools Bail out early 2019-01-27 23:10:13 +01:00
unoxml loplugin:singlevalfields in unoxml 2018-12-06 07:19:06 +01:00
ure remove more rtl::OUString and OString prefixes 2018-10-24 14:43:34 +02:00
uui loplugin:constparams in ucb..xmlhelp 2019-01-24 13:02:31 +01:00
vbahelper Replace OUStringBuffer::appendCopy with append(std::u16string_view) 2019-01-11 13:55:14 +01:00
vcl tdf#123031 allow natural cell width if the combobox contents are >= request 2019-01-29 17:01:27 +01:00
winaccessibility Clean up dead uses of DISABLE_ATL 2019-01-24 21:23:56 +01:00
wizards Cleaning up Document Converter wizard, moving graphics from bmp to png 2018-12-10 15:49:33 +01:00
writerfilter tdf#122430 RTF import: fix lost font size on footnote start 2019-01-29 09:18:05 +01:00
writerperfect CppunitTest_writerperfect_epubexport: use CPPUNIT_TEST_FIXTURE() 2019-01-24 09:06:19 +01:00
xmerge
xmlhelp loplugin:constparams in ucb..xmlhelp 2019-01-24 13:02:31 +01:00
xmloff Improve ODF enhanced-path command moveTo to follow spec 2019-01-29 01:16:51 +01:00
xmlreader Simplify containers iterations in xmlhelp, xmlreader, xmlscript, xmlsecurity 2018-09-15 09:06:38 +02:00
xmlscript remove unnecessary "if (!empty()" checks before loops 2018-11-29 07:17:37 +01:00
xmlsecurity CppunitTest_xmlsecurity_pdfsigning: use CPPUNIT_TEST_FIXTURE() 2019-01-18 09:06:19 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore No more need to generate lo.xcent from lo.xcent.in 2018-12-18 09:37:00 +01:00
.gitmodules uset https:// instead of git:// for submodules 2018-12-20 19:52:51 +01:00
.gitreview
autogen.sh Better way of enabling Developer Toolset 7 for Jenkins' linux_gcc_release_64 2018-11-25 17:25:21 +01:00
BUCK
config.guess
config.sub
config_host.mk.in Drop unnecessary gb_DEBUG_CFLAGS 2019-01-24 11:25:03 +01:00
config_host_lang.mk.in
configure.ac configure: require autoconf 2.68 2019-01-29 10:53:08 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Upgrade libatomic_ops to latest libatomic_ops-7.6.8.tar.gz 2019-01-28 13:42:45 +01:00
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent No more need to generate lo.xcent from lo.xcent.in 2018-12-18 09:37:00 +01:00
logerrit
Makefile.fetch tdf#79022 - Please bundle Source Serif Pro 2018-09-03 09:04:46 +02:00
Makefile.gbuild
Makefile.in No more need to generate lo.xcent from lo.xcent.in 2018-12-18 09:37:00 +01:00
README.cross Rename Mac OS X to official name macOS in comments and documentation 2018-11-29 14:08:26 +01:00
README.md Bump (Linux) GCC baseline to 7.0.0 2018-12-06 23:00:56 +01:00
README.Solaris
Repository.mk tdf#114635: reimplement TWAIN-based scan using 32-bit shim on Windows 2018-12-29 09:58:09 +01:00
RepositoryExternal.mk upload libcmis 0.5.2 2018-12-28 19:25:11 +01:00
RepositoryFixes.mk Rename Mac OS X to official name macOS in comments and documentation 2018-11-29 14:08:26 +01:00
RepositoryModule_build.mk
RepositoryModule_host.mk Moving mysqlc into connectivity as a library 2018-08-24 17:19:51 +02:00
sanitize-ubsan-blacklist
setup.cfg pep8 -> pycodestyle 2018-10-16 14:29:06 +02: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 2017
  • macOS:
    • Runtime: 10.10
    • Build: 10.13.2 + Xcode 9.3
  • Linux:
    • Runtime: RHEL 6 or CentOS 6
    • 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

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.