Extend loplugin:redundantinline to catch inline functions w/o external linkage

...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>
This commit is contained in:
Stephan Bergmann
2018-10-09 10:28:48 +02:00
parent 664db0d945
commit 7ceee0f1ec
316 changed files with 823 additions and 771 deletions

View File

@@ -59,7 +59,7 @@ using rtl::OUStringBuffer;
namespace cppu
{
static inline void try_dispose( Reference< XInterface > const & xInstance )
static void try_dispose( Reference< XInterface > const & xInstance )
{
Reference< lang::XComponent > xComp( xInstance, UNO_QUERY );
if (xComp.is())
@@ -68,7 +68,7 @@ static inline void try_dispose( Reference< XInterface > const & xInstance )
}
}
static inline void try_dispose( Reference< lang::XComponent > const & xComp )
static void try_dispose( Reference< lang::XComponent > const & xComp )
{
if (xComp.is())
{