Test repository to check push and ssh key
Find a file
Noel Grandin 46ce0d28b4 loplugin:stringliteralvar look for assignments
to O[U]String from char array literals, we can convert the char literals
to O[U]StringLiteral and avoid a runtime allocation

Change-Id: I15d8dddb2cd428b90740e39f20daf98e0941aa6d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114125
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-04-15 13:54:53 +02:00
.git-hooks
.github
.vscode
accessibility forward decl vcl::Window in toolkit/awt/vclxwindow.hxx 2021-04-12 09:49:17 +02:00
android android: Don't store whether spreadsheet in LibreOfficeMainActivity 2021-04-14 10:25:46 +02:00
animations Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
apple_remote Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
avmedia Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
basctl forward decl vcl::Window in toolkit/awt/vclxwindow.hxx 2021-04-12 09:49:17 +02:00
basegfx Recheck include/ with IWYU 2021-04-09 11:56:36 +02:00
basic update PCHs 2021-04-08 17:23:08 +02:00
bean Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
bin Revert "update Skia to chrome/m91" (tdf#141680) 2021-04-14 18:54:32 +02:00
binaryurp Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
bridges Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
canvas Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
chart2 tdf#141689 Fix crash in 'Central' moving avg function 2021-04-15 10:27:11 +02:00
cli_ure Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
codemaker Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
comphelper update PCHs 2021-04-08 17:23:08 +02:00
compilerplugins loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
config_host vcl PDFiumLibraryTest: clean up not needed HAVE_FEATURE_PDFIUM ifdefs 2021-04-15 09:07:48 +02:00
configmgr update PCHs 2021-04-08 17:23:08 +02:00
connectivity loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
cppcanvas update PCHs 2021-04-12 09:47:35 +02:00
cppu Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
cppuhelper update PCHs 2021-04-08 17:23:08 +02:00
cpputools Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
cui loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
dbaccess loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
desktop loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
dictionaries@96ecb3d82f Update git submodules 2021-04-11 10:01:47 +02:00
distro-configs Get rid of apache-commons-logging 2021-04-11 10:35:04 +02:00
drawinglayer update PCHs 2021-04-12 09:47:35 +02:00
editeng less copying in SfxItemPropertyMap::getPropertyEntries 2021-04-12 17:45:19 +02:00
embeddedobj embeddedobj: fix lost native data when updating it via OLE fails 2021-04-08 19:18:09 +02:00
embedserv Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
emfio -Werror,-Wformat (clang-cl) 2021-04-09 17:07:24 +02:00
eventattacher Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
extensions loplugin:unusedfields 2021-04-12 20:28:54 +02:00
external update serf to 1.3.9 2021-04-14 23:59:04 +02:00
extras Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
filter Fix typos 2021-04-14 18:58:39 +02:00
forms update PCHs 2021-04-08 17:23:08 +02:00
formula Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
fpicker loplugin:redundantstatic (clang-cl) 2021-04-09 21:14:15 +02:00
framework loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
helpcompiler
helpcontent2@140f7c8bd3 Update git submodules 2021-04-15 11:45:15 +02:00
hwpfilter Fix typo 2021-04-11 20:25:07 +02:00
i18nlangtag Update comment 2021-04-08 12:11:50 +02:00
i18npool Quote literals in {ja-JP} date and time format codes 2021-04-10 23:00:04 +02:00
i18nutil Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
icon-themes Sukapura: tdf#141617 fix inconsistent spacing and indentation icons 2021-04-11 12:20:03 +02:00
idl Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
idlc Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
include loplugin:unusedmethods 2021-04-14 20:52:54 +02:00
instsetoo_native Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
io Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
ios
javaunohelper Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
jurt Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
jvmaccess Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
jvmfwk Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
l10ntools Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
librelogo Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
libreofficekit Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
lingucomponent Fix typo 2021-04-08 17:54:36 +02:00
linguistic less copying in SfxItemPropertyMap::getPropertyEntries 2021-04-12 17:45:19 +02:00
lotuswordpro update PCHs 2021-04-08 17:23:08 +02:00
m4 Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
nlpsolver Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
o3tl Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
odk Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
offapi Update the reference rdbs to libreoffice-7.1.0.3 2021-04-13 11:47:37 +02:00
officecfg tdf#125909 tdf#141298 sw: show (Hidden) Track Changes infobar 2021-04-12 10:44:49 +02:00
onlineupdate Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
oovbaapi [API-CHANGE] tdf#141543 VBA Range.Formula Range.FormulaR1C1 non-localized 2021-04-09 16:27:09 +02:00
oox reduce allocation in TextListStyle some more 2021-04-14 18:32:26 +02:00
opencl Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
osx Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
package update PCHs 2021-04-08 17:23:08 +02:00
pch Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
postprocess Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
pyuno Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
qadevOOo Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
readlicense_oo Add Esperanto dictionaries 2021-04-11 10:51:16 +02:00
registry Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
remotebridges Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
reportbuilder Get rid of apache-commons-logging 2021-04-11 10:35:04 +02:00
reportdesign less copying in SfxItemPropertyMap::getPropertyEntries 2021-04-12 17:45:19 +02:00
ridljar Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
sal Use more std lib 2021-04-12 16:34:15 +02:00
salhelper Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
sax tdf#79591: No need to use getStr here 2021-04-13 20:39:45 +02:00
sc loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
scaddins loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
sccomp Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
schema Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
scp2 Add Esperanto dictionaries 2021-04-11 10:51:16 +02:00
scripting loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
sd loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
sdext update PCHs 2021-04-08 17:23:08 +02:00
setup_native Add Esperanto dictionaries 2021-04-11 10:51:16 +02:00
sfx2 loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
shell Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
slideshow update PCHs 2021-04-12 09:47:35 +02:00
smoketest Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
solenv Fix problems with LibreOffice document generation (local and portal) 2021-04-14 23:56:09 +02:00
soltools Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
sot update PCHs 2021-04-12 09:47:35 +02:00
starmath update PCHs 2021-04-12 09:47:35 +02:00
stoc Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
store Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
svgio update PCHs 2021-04-12 09:47:35 +02:00
svl we don't want this dynamic_cast in release builds 2021-04-13 20:38:25 +02:00
svtools loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
svx loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
sw loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
swext Get rid of apache-commons-logging 2021-04-11 10:35:04 +02:00
sysui Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
test getXPathNode may return nullptr 2021-04-12 21:52:19 +02:00
testtools Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
toolkit forward decl vcl::Window in toolkit/awt/vclxwindow.hxx 2021-04-12 09:49:17 +02:00
tools ofz#33235 Integer-overflow 2021-04-14 18:33:16 +02:00
translations@e6805b7fe6 Update git submodules 2021-04-12 13:20:28 +02:00
ucb loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
ucbhelper Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
udkapi Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
uitest uitest: factor out common code 2021-04-07 21:05:45 +02:00
UnoControls Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
unodevtools Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
unoidl Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
unoil Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
unotest
unotools Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
unoxml Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
ure Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
uui update PCHs 2021-04-12 09:47:35 +02:00
vbahelper loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
vcl Qt5 correctly focus the navigator window 2021-04-15 09:43:59 +02:00
winaccessibility Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
wizards ScriptForge - (SFDocuments) Fix SF_Base.OpenFormDocument() 2021-04-15 11:20:34 +02:00
writerfilter static const char[] -> OUStringLiteral 2021-04-14 20:24:28 +02:00
writerperfect Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
xmerge Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
xmlhelp Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
xmloff loplugin:stringliteralvar look for assignments 2021-04-15 13:54:53 +02:00
xmlreader speed up XmlReader::handleSkippedText 2021-04-10 20:56:49 +02:00
xmlscript Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
xmlsecurity tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor 2021-04-14 11:07:06 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in Get rid of apache-commons-logging 2021-04-11 10:35:04 +02:00
config_host_lang.mk.in
configure.ac vcl PDFiumLibraryTest: clean up not needed HAVE_FEATURE_PDFIUM ifdefs 2021-04-15 09:07:48 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst update serf to 1.3.9 2021-04-14 23:59:04 +02:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch Get rid of apache-commons-logging 2021-04-11 10:35:04 +02:00
Makefile.gbuild
Makefile.in use systemd-detect-virt to detect building as root in container 2021-04-10 17:14:46 +02:00
README.cross
README.md Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
README.Solaris
Repository.mk
RepositoryExternal.mk update serf to 1.3.9 2021-04-14 23:59:04 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-excludelist
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 2019 version 16.5
  • macOS:
    • Runtime: 10.10
    • Build: 10.14.4 + Xcode 11.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.md 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.md 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.