2426 Commits

Author SHA1 Message Date
Noel Grandin
16d9d1d112 new loplugin:unusedvarsglobal
I copied and modified the unusedfields plugin to find unused
variables.

Change-Id: I18ed6daa202da70a2e564e4fe4760aed7ce070ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100891
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-18 14:48:51 +02:00
Caolán McNamara
2ff4321021 remove newly unused ExtMultiLineEdit
Change-Id: If9a1639d28aa7a540f301657387a04309ba82580
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100873
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-18 12:18:59 +02:00
Noel Grandin
e40e5726e0 loplugin:unusedmethods
Change-Id: I31002cc322c43498ef8c37f6b7f94ae1a8278ba9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100857
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-17 16:26:34 +02:00
Noel Grandin
89ca0ed3bc loplugin:singlevalfields
Change-Id: Ia5d4de61ecf77477e86032b86d67d6ffd011913e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100819
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-16 15:26:12 +02:00
Noel Grandin
dcadca1bd5 loplugin:unusedfields
Change-Id: I61fe1c43f4235eddfca80f2a8392c58d4b1380e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100818
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-16 15:25:50 +02:00
Noel Grandin
a568abf851 loplugin:unnecessaryvirtual
Change-Id: Iafad1df533d5fefd335066427a0fb9e2d8bfa91d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100817
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-16 13:48:36 +02:00
Noel Grandin
b011e696f2 loplugin:virtualdead
Change-Id: Ic002692801113de5778826db5e3faf9869a48307
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100816
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-16 13:48:20 +02:00
Noel Grandin
e67657d521 loplugin:simplifybool more
look for expressions like
    !(a && !b)
which can be expanded out

Change-Id: I72515a9638762b050f9a258c08da39ebfa2ef8e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100579
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-14 18:03:06 +02:00
Maxim Monastirsky
7bb20ab2e8 One toolbar generic controller is enough
The one from framework is more feature complete, so use that one.

Change-Id: I499f0ae1d20c588cfc04beebc643819559325882
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100726
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2020-08-14 17:03:55 +02:00
Noel Grandin
7c67a8f4e8 rename nmspmap.hxx -> namespacemap.hxx
we're not in DOS anymore, Dorothy

Change-Id: I79926e0d694163940ba7ebf20419724dd0a486f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100721
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-14 11:07:08 +02:00
Noel Grandin
3457da6abe loplugin:stringstatic also look for local statics
Add some API to O*StringLiteral, to make it easier
to use in some places that were using O*String

Change-Id: I1fb93bd47ac2065c9220d509aad3f4320326d99e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100270
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-13 08:16:03 +02:00
Noel Grandin
361c46fdcc use unique_ptr for ScGlobal::pFieldEditEngine
Change-Id: Ic9894f9fb77ee270a3c09c0a3b5a008331016295
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100562
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-12 10:16:22 +02:00
Noel Grandin
c8b7a833c8 loplugin:unusedmethods
Change-Id: I58819edd0965ff52c3fc6c20d84bc5951a79bbe2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100381
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-08 18:57:02 +02:00
Noel Grandin
000424566d loplugin:unnecessaryvirtual
Change-Id: Idcb25f62f0371178222fb05fb8e3ec9fd335305b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100379
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-08 15:12:55 +02:00
Caolán McNamara
f0f1d1fb2f merge dbaui::OMarkableTreeListBox with dbaui::OTableTreeListBox
Change-Id: I5cde5c453493e5287faa770eede2e42b21075477
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100330
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-08 14:57:56 +02:00
Noel Grandin
7d8c8af4b2 loplugin:unusedfields
Change-Id: I9fd1e742fea5d2f6c45fb2086df79b420d514e98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100380
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-08 13:47:49 +02:00
Noel Grandin
5a79c78338 loplugin:virtualdead
Change-Id: Ib2a4ebad50e9c6f0d71a9ac3a1bc8ac11e775496
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100378
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-08 12:58:58 +02:00
Stephan Bergmann
2e12d210ca Silence loplugin:staticmethods when the definition involves preprocessing
...to help avoid false positives.  (Another option to silence such warnings is
to add

  (void) this;

to false-positive function bodies, but this new approach may be more natural in
certain cases.)

Change-Id: Ie6ea908730c596dbfb62ff42ae60dbd0a00a8fc9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100152
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-08-05 11:30:20 +02:00
Stephan Bergmann
8324dfb50b Adapt to --disable-assert-always-abort
Change-Id: Ib578c5d8c82ca763770d316384c6753534dbfee3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100141
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-08-05 10:25:26 +02:00
Stephan Bergmann
4f294e6976 Avoid some unhelpful loplugin:makeshared
...like

> canvas/source/directx/dx_impltools.cxx(137,31): error: rather use make_shared than constructing from 'Gdiplus::Graphics *' [loplugin:makeshared]
>             GraphicsSharedPtr pRet(Gdiplus::Graphics::FromImage(rBitmap.get()));
>                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

on Windows, where those functions like FromImage are provided by Windows (so we
can't help it that they are returning pointers)

Change-Id: Iae5c4b20d64cc6b38ff66409519fbd25f6e509cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100095
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-08-04 18:47:10 +02:00
Noel Grandin
72a67f1158 loplugin:unusedmethods
Change-Id: I5fa2bbeff17a9933ff55afb0c3544d025d096a63
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100085
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-04 17:44:21 +02:00
Noel Grandin
01b96fcefe remove some debug code
Change-Id: I6aff84ce7b9d4fed27d8442d1366bcf14bc44f86
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100084
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-04 16:12:06 +02:00
Stephan Bergmann
30ededbd00 Adapt compilerplugins/clang/test/makeshared.cxx to MSVC standard library
> error: 'error' diagnostics seen but not expected:
>   File compilerplugins/clang/test/makeshared.cxx Line 47: rather use make_shared than constructing from 'unique_ptr<int>' [loplugin:makeshared]
>   File compilerplugins/clang/test/makeshared.cxx Line 49: rather use make_shared than constructing from 'unique_ptr<int>' [loplugin:makeshared]
>   File compilerplugins/clang/test/makeshared.cxx Line 53: rather use make_shared than constructing from 'unique_ptr<int>' [loplugin:makeshared]

Change-Id: I5d2d1b129c9d0fee496eceb4e2cf14f5853ba00b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100074
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-08-04 14:24:47 +02:00
Stephan Bergmann
5a8edae67c Adapt compilerplugins/clang/test/getstr.cxx to latest MSVC standard library
...that now defines the wide-character-to-narrow-stream inserters as deleted
too, at least in C++20 mode.

Change-Id: I554f2530d5905e46343bf0d8bf12a6feb3d63075
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100073
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-08-04 14:24:10 +02:00
Noel Grandin
cda88ec7a4 loplugin:simplifybool a little more aggressive
with expressions like !(a && b)

Change-Id: Id2acec2a8d0eaaa8e5e37dbd2cae7281be36572e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100040
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-04 11:21:36 +02:00
Stephan Bergmann
5c7e838714 Revert "Adapt to changed clang::ASTContext::getParents behavior on Clang 11 trunk"
This reverts commit 09aa5a9be8b9b3c88cf25b85e0eda28c5ef19aa4, now that
<https://github.com/llvm/llvm-project/commit/
551092bc3dfb86f1e11a55f3bee0c8ee1be6fdd6> "Revert AST Matchers default to AsIs
mode" reverted the Clang commit that prompted this compilerplugins change.

Change-Id: I75c8b4cb2894cd67a791db460f2886a783856c73
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100026
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-08-03 23:18:58 +02:00
Noel Grandin
c3d446522d loplugin:unusedmethods
Change-Id: I0d888b565b0b53b318b790926667d7ba49504411
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99854
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-31 11:17:48 +02:00
Noel Grandin
0c1b49048f loplugin:unusedmethods
and tweak the plugin a little to speed it up

Change-Id: Ia59456232602184c4f1b5d1d75ad94a9a2e2d0be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99799
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-30 17:34:39 +02:00
Noel Grandin
6af041b816 loplugin:flatten in sw/uibase/utl..sw/uibase/wrtsh
Change-Id: I9010524952ce3b99a62e53dbf715a72c86a89b01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99766
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-30 12:18:29 +02:00
Caolán McNamara
153d9483c1 replace and drop SvtPrintWarningOptions
Change-Id: I17fd4156eb940fbdc925d9761301096e5349135f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99674
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-07-29 16:16:04 +02:00
Caolán McNamara
e74a985283 drop newly unused SvtFontOptions
Change-Id: Iaab664770d96a7d197354949bbe6d82c248f1037
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99648
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-07-29 14:53:54 +02:00
Stephan Bergmann
292a5e7195 Adapt to Clang 12 trunk Expr::getIntegerConstantExpression
<https://github.com/llvm/llvm-project/commit/
36036aa70ec1df7b51b5d30b2dd8090ad2b6e783> "Reapply 'Rename/refactor
isIntegerConstantExpression to getIntegerConstantExpression'"

Change-Id: I99277601fe7ffa3e0e5d22a4b3aaca4f51551ab3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99570
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-07-28 09:56:46 +02:00
Noel Grandin
7a82005890 loplugin:constantparam
Change-Id: Ic0079cf1d5d2463963b1be08a59cb93db6f12870
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99417
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-25 10:38:59 +02:00
Noel Grandin
5c1916763d loplugin:unusedmethods
Change-Id: I3a35c988b1c55b16958172ed5ef4e2d5cb410e55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99413
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-25 08:57:13 +02:00
Noel Grandin
c9e13a9f18 loplugin:unusedfields
Change-Id: Ia2fb09dcd6f266e7eab04fceb893839531ab3e00
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99412
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-25 08:57:06 +02:00
Noel Grandin
363a25338e loplugin:unusedmethods
Change-Id: I3520c2e97bb5b1611dcce77ca9f8393b29e75a1f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99110
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-21 08:31:20 +02:00
Noel Grandin
751f4d4428 loplugin:constantparam
Change-Id: Id5144e95ac0120b3125258cdde46e4f7f6e1690b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99109
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-21 08:30:47 +02:00
Noel Grandin
bb7b0511bb loplugin:unusedfields
Change-Id: I933d9a82bb6ad5f5b946e28abcc2dae30126c720
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99108
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-21 08:30:34 +02:00
Noel Grandin
1c584069a8 loplugin:unnecessaryvirtual
Change-Id: Ida7e1fa4bfaa6734dac26705726043e6b9d9204e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99107
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-20 23:03:43 +02:00
Stephan Bergmann
5d546de67b Adapt to Clang 12 trunk RecursiveASTVisitor change
<https://github.com/llvm/llvm-project/commit/
5689b38c6a4220cc5f6ba68a56486229b10071bf> "Removed a RecursiveASTVisitor feature
to visit operator kinds with different methods".

That change is incompatible in that before the change individual TraverseUnary*
and TraverseBin* functions were called, while now TraverseUnaryOperator and
TraverseBinaryOperator/TraverseCompoundAssignOperator are called for all the
different operators.  Fixed that with a few #if for the non-shared plugins, but
that doesn't work for the shared plugin.  So made the two affected plugins non-
shared for now and left a better fix as a TODO.

Change-Id: I5b87d329ae2c4c93bf605bb1ecc9641039f014a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99000
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-07-19 23:05:57 +02:00
Caolán McNamara
299e128b51 replace TimeSpinButton with FormattedSpinButton
with a TimeFormatter rather than have duplicate functionality

Change-Id: I99f1f2aabee5f81485f97755ba3675870317cfb9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98791
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-07-15 15:00:56 +02:00
Mike Kaganski
bd96a6f7b7 Don't rely on Python's treatment of unrecognized escape sequences
According to [1]:

> Changed in version 3.6: Unrecognized escape sequences produce a DeprecationWarning.
> In a future Python version they will be a SyntaxWarning and eventually a SyntaxError.

[1] https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals

Change-Id: Ia4f79f17ccb121f423f35b1e1306d5ae285e8762
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98321
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-07-13 22:23:44 +02:00
Thorsten Behrens
abb6c01519 replace usage of whitelist with allowlist
Background and motivation:
  https://tools.ietf.org/html/draft-knodel-terminology-02

[API CHANGE] officecfg::Office::Common::Misc::OpenCLWhiteList -> OpenCLAllowList

Change-Id: I65636b19b13e4af1e4851f70e78053f3443d6bb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98181
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-07-10 01:36:07 +02:00
Jan-Marek Glogowski
b9d93fc47b Allow making SAL_LOG based output fatal
This introduces the [+-]FATAL marker for SAL_LOG. This way you can
set part of the matching SAL_LOG string to std::abort on match.

The example "SAL_LOG=+FATAL+WARN.vcl.scheduler-FATAL+INFO" will
abort for any "+WARN.vcl.scheduler" match, but will just print all
additional "+INFO" logs.

Change-Id: Ib77f194a78f5165e6c885c82374ae41293815ee9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97651
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-07-07 14:15:04 +02:00
Noel Grandin
dc119d12f0 loplugin:unusedenumconstants
Change-Id: I6dde54ddc2a2be4a9bbe11cdb52550de7f6a1023
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97836
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-03 14:51:48 +02:00
Szymon Kłos
004512d87a notebookbar: allow to create multiple instances for online
Change-Id: Ic8a3d07ec6ec5a5d6d56a3958e91d3074ce1493e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96936
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97788
Tested-by: Jenkins
2020-07-03 09:50:28 +02:00
Stephan Bergmann
f4c126da92 Improved loplugin:staticanonymous -> redundantstatic
...now also covering variables with internal linkage that don't need a redundant
"static".  (Unlike with functions, with variables there are also cases that are
not in an unnamed namespace, hence the rename of the plugin.)

All the relevant changes across the code base have been done in the preceding
"Upcoming improved loplugin:staticanonymous -> redundantstatic" commits.
Ideally the changes would have been done with a rewriting plugin, but it can be
quite tedious in general to identify the correct occurrence of "static" that
must be removed, consider e.g.

  struct { int init() { static int n; return n++; } int x = init(); } static
  const a[10] = {};

However, it turned out that in all cases across the code base, the relevant
"static" was either at the start of the declaration or came after an initial
"const".  So I temporarily changed the plugin with

> --- a/compilerplugins/clang/redundantstatic.cxx
> +++ b/compilerplugins/clang/redundantstatic.cxx
> @@ -59,7 +59,7 @@ class RedundantStatic
>                  }
>                  report(
>                      DiagnosticsEngine::Warning, "redundant 'static' keyword in unnamed namespace",
> -                    decl->getLocation())
> +                    decl->getBeginLoc())
>                      << decl->getSourceRange();
>                  return true;
>              }
> @@ -73,7 +73,7 @@ class RedundantStatic
>                  DiagnosticsEngine::Warning,
>                  "non-inline variable of non-volatile const-qualified type is redundantly marked as"
>                      " 'static'",
> -                decl->getLocation())
> +                decl->getBeginLoc())
>                  << decl->getSourceRange();
>              return true;
>          }

to report the diagnostics at the start of the declarations (instead of at a more
natural place which is typically somewhere in the middle of the declaration),
compiled LO from within Emacs and then ran a function

> (defun doit ()
>   (interactive)
>   (while t
>     (next-error)
>     (with-current-buffer (window-buffer)
>       (when (re-search-forward
>              "\\=\\(\\<static\\>\\s *\\|\\(\\<const\\>\\)\\s +\\<static\\>\\)"
>              nil t)
>         (replace-match "\\2")))))

to do all the replacements.  (Plus solenv/clang-format/reformat-formatted-files
where necessary.)

Change-Id: Ie7efc8e0593a407c390a6a7a08c81e547410f18a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97779
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-07-02 23:27:05 +02:00
Stephan Bergmann
631cec87e2 loplugin:externvar is covered by loplugin:external
...so drop the former.  But keep the relevant externvar tests by moving them
into compilerplugins/clang/test/external.cxx.  (Which revealed one difference
between the two plugins, regarding certain extern "C" variables in unnamed
namespaces, where Clang (and for that matter also e.g. GCC, it appears)
deliberately deviates from the Standard and considers them to have external
linkage.  Add clarifying comments that loplugin:external keeps considering these
as having internal linkage, following the Standard.)

Change-Id: I344fcd0135fdaf6bf08a4b396af2ed2299389a7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97639
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-07-01 19:50:42 +02:00
Noel Grandin
b8f5094c3e loplugin:constantparam
Change-Id: Ie9d4761747f7e97f63f34394b5a8b9f0bb287a0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97528
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-01 08:31:53 +02:00
Noel Grandin
db3b0ddbe0 loplugin:unusedfields
Change-Id: Ia0f517fba3a0660b64c97f426cc2cdfbbcd0ebad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97391
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-06-29 12:23:50 +02:00