Age | Commit message (Collapse) | Author |
|
...where "inline" (in its meaning of "this function can be defined in multiple
translation units") thus doesn't make much sense. (As discussed in
compilerplugins/clang/redundantinline.cxx, exempt such "static inline" functions
in include files for now.)
All the rewriting has been done automatically by the plugin, except for one
instance in sw/source/ui/frmdlg/column.cxx that used to involve an #if), plus
some subsequent solenv/clang-format/reformat-formatted-files.
Change-Id: Ib8b996b651aeafc03bbdc8890faa05ed50517224
Reviewed-on: https://gerrit.libreoffice.org/61573
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
|
|
...warning about (for now only) functions and variables with external linkage
that likely don't need it.
The problems with moving entities into unnamed namespacs and breaking ADL
(as alluded to in comments in compilerplugins/clang/external.cxx) are
illustrated by the fact that while
struct S1 { int f() { return 0; } };
int f(S1 s) { return s.f(); }
namespace N {
struct S2: S1 { int f() { return 1; } };
int f(S2 s) { return s.f(); }
}
int main() { return f(N::S2()); }
returns 1, both moving just the struct S2 into an nunnamed namespace,
struct S1 { int f() { return 0; } };
int f(S1 s) { return s.f(); }
namespace N {
namespace { struct S2: S1 { int f() { return 1; } }; }
int f(S2 s) { return s.f(); }
}
int main() { return f(N::S2()); }
as well as moving just the function f overload into an unnamed namespace,
struct S1 { int f() { return 0; } };
int f(S1 s) { return s.f(); }
namespace N {
struct S2: S1 { int f() { return 1; } };
namespace { int f(S2 s) { return s.f(); } }
}
int main() { return f(N::S2()); }
would each change the program to return 0 instead.
Change-Id: I4d09f7ac5e8f9bcd6e6bde4712608444b642265c
Reviewed-on: https://gerrit.libreoffice.org/60539
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
|
|
Since the previous call would throw if there was nothing to be assigned
to the value.
Idea from tml.
Used the following script to find places:
git grep -A3 -n UNO_QUERY_THROW | grep -B3 -F 'is()'
Change-Id: I36ba7b00bcd014bdf16c0455ab91056f82194969
Reviewed-on: https://gerrit.libreoffice.org/55417
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
|
|
no longer necessary
Change-Id: I9e0fcea1134e8c5e27f9effbb5eb79fe5446e33d
Reviewed-on: https://gerrit.libreoffice.org/50925
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
|
|
Change-Id: I0e25c8950ac26b851ff42f71e1471fcbe4770d48
Reviewed-on: https://gerrit.libreoffice.org/50373
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
|
|
Change-Id: I4f23971186ab7c61fb6c76422f654291333ee07d
Reviewed-on: https://gerrit.libreoffice.org/49067
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jens Carl <j.carl43@gmx.de>
|
|
Change-Id: I2707d16e6dd7bc5617094963933fced147a496e8
|
|
Change-Id: I23bf5d47c2cce31d6dd076eeac58cb2ce47b248a
Reviewed-on: https://gerrit.libreoffice.org/22953
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
|
|
Change-Id: Ief66447f04245b8ab0a4acbf097eb7283529d45d
|
|
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
|
|
Change-Id: I95b8a415e6dea108ac1401447e3c645e8a7b75ef
|
|
Change-Id: I7188af55ebc48838ea236d482e8809a43a99ba9d
|
|
Change-Id: I38c025481d3135a708668cad00816f22cdd66cc8
|
|
initialization
or does not detect that the thing would abort should the init failed.
|
|
Change-Id: Ifc71437b8c7dfd70bf733863713ada4ad605abad
|
|
Change-Id: Ia5974e57fd4a21897577ff25fb53f48cceb49501
|
|
Change-Id: I1f1722aa3566555816df19e68aa7eaa97e7a13d9
|
|
Change-Id: I581a8a0c7348a9752611b378e883ef20172d16e0
|
|
Change-Id: I55604485183057f476c636abc4d43bc9fc58711a
|
|
Change-Id: I1786a8b1bf871ccefd73efe3e0515bc3a7dda709
|
|
Change-Id: I38cfba16e3187a9d80b51258c85f06a829a8a76c
|
|
Change-Id: I05fc54a2153fd90d03d2575bdd9bde30a54d71c1
|
|
Change-Id: Ib7df18a5ff8f9afa00c925245eae0ae8be9e06e9
|
|
Change-Id: I85cee7b6b55ce35bb900eaf708744117208e57d7
|