diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 12:52:55 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-13 15:14:36 +0100 |
commit | fddcbd5d28bb58993ee3d210f1d11e57c70a8894 (patch) | |
tree | 8172a1c3900440aaf423465db9371bdf41b8c4c4 | |
parent | tdf#123936 Formatting files in module cli_ure with clang-format (diff) | |
download | core-fddcbd5d28bb58993ee3d210f1d11e57c70a8894.tar.gz core-fddcbd5d28bb58993ee3d210f1d11e57c70a8894.zip |
tdf#123936 Formatting files in module cppu with clang-format
Change-Id: I98281fce06c2a8c094db9e80c1f6bdf35ce70ccd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105657
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r-- | cppu/source/uno/IdentityMapping.hxx | 7 | ||||
-rw-r--r-- | cppu/source/uno/loadmodule.hxx | 12 | ||||
-rw-r--r-- | cppuhelper/source/paths.hxx | 14 | ||||
-rw-r--r-- | cppuhelper/source/supportsservice.cxx | 6 | ||||
-rw-r--r-- | solenv/clang-format/excludelist | 4 |
5 files changed, 22 insertions, 21 deletions
diff --git a/cppu/source/uno/IdentityMapping.hxx b/cppu/source/uno/IdentityMapping.hxx index 4a6db6d81bc1..8ba081b0099f 100644 --- a/cppu/source/uno/IdentityMapping.hxx +++ b/cppu/source/uno/IdentityMapping.hxx @@ -21,8 +21,11 @@ #include <uno/mapping.h> -namespace com::sun::star::uno { class Environment; } +namespace com::sun::star::uno +{ +class Environment; +} -uno_Mapping * createIdentityMapping(const css::uno::Environment & rEnv); +uno_Mapping* createIdentityMapping(const css::uno::Environment& rEnv); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppu/source/uno/loadmodule.hxx b/cppu/source/uno/loadmodule.hxx index 4d6c322c1078..694b1402492e 100644 --- a/cppu/source/uno/loadmodule.hxx +++ b/cppu/source/uno/loadmodule.hxx @@ -22,10 +22,13 @@ #include <sal/config.h> #include <rtl/ustring.hxx> -namespace osl { class Module; } - -namespace cppu::detail { +namespace osl +{ +class Module; +} +namespace cppu::detail +{ #ifndef DISABLE_DYNLOADING /** Load a module. @@ -36,10 +39,9 @@ namespace cppu::detail { @return false if the module could not be loaded, otherwise true */ -bool loadModule(osl::Module & rModule, OUString const & name); +bool loadModule(osl::Module& rModule, OUString const& name); #endif - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppuhelper/source/paths.hxx b/cppuhelper/source/paths.hxx index 9ce486fa772a..c1e3724c0aa1 100644 --- a/cppuhelper/source/paths.hxx +++ b/cppuhelper/source/paths.hxx @@ -22,16 +22,18 @@ #include <sal/config.h> #include <rtl/ustring.hxx> -namespace osl { class Directory; } - -namespace cppu { +namespace osl +{ +class Directory; +} +namespace cppu +{ OUString getUnoIniUri(); -bool nextDirectoryItem(osl::Directory & directory, OUString * url); - -void decodeRdbUri(OUString * uri, bool * optional, bool * directory); +bool nextDirectoryItem(osl::Directory& directory, OUString* url); +void decodeRdbUri(OUString* uri, bool* optional, bool* directory); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppuhelper/source/supportsservice.cxx b/cppuhelper/source/supportsservice.cxx index f7f267ea0fd5..40dca8c0c269 100644 --- a/cppuhelper/source/supportsservice.cxx +++ b/cppuhelper/source/supportsservice.cxx @@ -17,12 +17,10 @@ #include <cppuhelper/supportsservice.hxx> #include <rtl/ustring.hxx> -bool cppu::supportsService( - css::lang::XServiceInfo * implementation, OUString const & name) +bool cppu::supportsService(css::lang::XServiceInfo* implementation, OUString const& name) { assert(implementation != nullptr); - const css::uno::Sequence< OUString > s( - implementation->getSupportedServiceNames()); + const css::uno::Sequence<OUString> s(implementation->getSupportedServiceNames()); return std::find(s.begin(), s.end(), name) != s.end(); } diff --git a/solenv/clang-format/excludelist b/solenv/clang-format/excludelist index b002207f44ff..a5c4affa2c16 100644 --- a/solenv/clang-format/excludelist +++ b/solenv/clang-format/excludelist @@ -2457,7 +2457,6 @@ cppu/source/typelib/typelib.hxx cppu/source/uno/EnvDcp.cxx cppu/source/uno/EnvStack.cxx cppu/source/uno/IdentityMapping.cxx -cppu/source/uno/IdentityMapping.hxx cppu/source/uno/any.cxx cppu/source/uno/assign.hxx cppu/source/uno/cascade_mapping.cxx @@ -2471,7 +2470,6 @@ cppu/source/uno/eq.hxx cppu/source/uno/lbenv.cxx cppu/source/uno/lbmap.cxx cppu/source/uno/loadmodule.cxx -cppu/source/uno/loadmodule.hxx cppu/source/uno/prim.hxx cppu/source/uno/sequence.cxx cppuhelper/qa/ifcontainer/cppu_ifcontainer.cxx @@ -2496,13 +2494,11 @@ cppuhelper/source/loadsharedlibcomponentfactory.hxx cppuhelper/source/macro_expander.cxx cppuhelper/source/macro_expander.hxx cppuhelper/source/paths.cxx -cppuhelper/source/paths.hxx cppuhelper/source/propertysetmixin.cxx cppuhelper/source/propshlp.cxx cppuhelper/source/servicemanager.cxx cppuhelper/source/servicemanager.hxx cppuhelper/source/shlib.cxx -cppuhelper/source/supportsservice.cxx cppuhelper/source/tdmgr.cxx cppuhelper/source/typemanager.cxx cppuhelper/source/typemanager.hxx |