diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2024-02-03 18:03:45 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-02-08 15:19:14 +0100 |
commit | f93ae0455c4d515be1ca663725a6e58d64a7e393 (patch) | |
tree | 82fccfa08c2a3a2124396428364097aa7f375f8b /bridges | |
parent | d1320c634817e4edb0d76da26178f323c6c675f2 (diff) |
Check bridges with IWYU
Only the parts tha build on x64 arch
See tdf#42949 for motivation
Change-Id: Ifa3c5107887f5ab7837beee83d9603e8c883a7a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162961
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/IwyuFilter_bridges.yaml | 13 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_x86-64/abi.cxx | 1 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx | 4 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx | 1 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_x86-64/rtti.cxx | 2 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx | 2 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx | 4 | ||||
-rw-r--r-- | bridges/source/cpp_uno/shared/bridge.cxx | 1 | ||||
-rw-r--r-- | bridges/source/cpp_uno/shared/component.cxx | 2 | ||||
-rw-r--r-- | bridges/source/cpp_uno/shared/vtablefactory.cxx | 2 | ||||
-rw-r--r-- | bridges/source/jni_uno/jni_base.h | 4 | ||||
-rw-r--r-- | bridges/source/jni_uno/jni_bridge.cxx | 2 | ||||
-rw-r--r-- | bridges/source/jni_uno/jni_bridge.h | 7 | ||||
-rw-r--r-- | bridges/source/jni_uno/jni_data.cxx | 1 | ||||
-rw-r--r-- | bridges/source/jni_uno/jni_info.cxx | 3 | ||||
-rw-r--r-- | bridges/source/jni_uno/jni_info.h | 1 | ||||
-rw-r--r-- | bridges/source/jni_uno/jni_java2uno.cxx | 5 | ||||
-rw-r--r-- | bridges/source/jni_uno/jni_uno2java.cxx | 3 |
18 files changed, 24 insertions, 34 deletions
diff --git a/bridges/IwyuFilter_bridges.yaml b/bridges/IwyuFilter_bridges.yaml new file mode 100644 index 000000000000..071db0504370 --- /dev/null +++ b/bridges/IwyuFilter_bridges.yaml @@ -0,0 +1,13 @@ +--- +assumeFilename: bridges/source/cpp_uno/gcc3_linux_x86-64/abi.cxx +excludelist: + bridges/source/cpp_uno/gcc3_linux_x86-64/abi.hxx: + # No .hxx -> .h replacement in URE headers + - typelib/typedescription.hxx + bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx: + # No .hxx -> .h replacement in URE headers + - typelib/typedescription.hxx + bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx: + # Actually needed + - callvirtualmethod.hxx + - share.hxx diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/abi.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/abi.cxx index 243e42d057e8..4f724dbb6861 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/abi.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/abi.cxx @@ -55,7 +55,6 @@ #include "abi.hxx" #include <o3tl/unreachable.hxx> -#include <sal/log.hxx> using namespace x86_64; diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx index bd6d9e61796d..eb57c2ac92c5 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx @@ -18,9 +18,6 @@ */ -#include <typeinfo> - -#include <rtl/alloc.h> #include <sal/log.hxx> #include <com/sun/star/uno/genfunc.hxx> @@ -36,7 +33,6 @@ #include "abi.hxx" #include "call.hxx" -#include "rtti.hxx" #include "share.hxx" using namespace ::com::sun::star::uno; diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx index daee12731ef1..ed62f404f439 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx @@ -28,6 +28,7 @@ #include "rtti.hxx" #include "share.hxx" +#include <cxxabi.h> using namespace ::std; using namespace ::com::sun::star::uno; diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/rtti.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/rtti.cxx index 9bce77bc8468..eeff17303990 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/rtti.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/rtti.cxx @@ -20,6 +20,7 @@ #include <sal/config.h> #include <cassert> +#include <cxxabi.h> #include <memory> #include <mutex> #include <typeinfo> @@ -36,7 +37,6 @@ #include <o3tl/string_view.hxx> #include "rtti.hxx" -#include "share.hxx" namespace { diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx index d7657bcc04be..6752eeaf6c3d 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx @@ -21,9 +21,7 @@ #include <typeinfo> #include <exception> -#include <cstddef> -#include <cxxabi.h> #ifndef _GLIBCXX_CDTOR_CALLABI // new in GCC 4.7 cxxabi.h #define _GLIBCXX_CDTOR_CALLABI #endif diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx index 496702120ab4..25277857f82e 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/uno2cpp.cxx @@ -17,13 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <sal/alloca.h> - #include <exception> #include <typeinfo> -#include <rtl/alloc.h> - #include <com/sun/star/uno/genfunc.hxx> #include <com/sun/star/uno/RuntimeException.hpp> #include <o3tl/runtimetooustring.hxx> diff --git a/bridges/source/cpp_uno/shared/bridge.cxx b/bridges/source/cpp_uno/shared/bridge.cxx index 3753341ccde2..ddd34e4ed380 100644 --- a/bridges/source/cpp_uno/shared/bridge.cxx +++ b/bridges/source/cpp_uno/shared/bridge.cxx @@ -25,7 +25,6 @@ #include <com/sun/star/uno/XInterface.hpp> #include <rtl/ustring.h> -#include <sal/types.h> #include <typelib/typedescription.h> #include <uno/dispatcher.h> #include <uno/environment.h> diff --git a/bridges/source/cpp_uno/shared/component.cxx b/bridges/source/cpp_uno/shared/component.cxx index 0a2f1a25150f..26d37af506ac 100644 --- a/bridges/source/cpp_uno/shared/component.cxx +++ b/bridges/source/cpp_uno/shared/component.cxx @@ -22,8 +22,6 @@ #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/RuntimeException.hpp> #include <com/sun/star/uno/XInterface.hpp> -#include <osl/mutex.hxx> -#include <osl/time.h> #include <rtl/process.h> #include <rtl/ustrbuf.hxx> #include <rtl/ustring.h> diff --git a/bridges/source/cpp_uno/shared/vtablefactory.cxx b/bridges/source/cpp_uno/shared/vtablefactory.cxx index 53b516cded5a..8d139091b4fc 100644 --- a/bridges/source/cpp_uno/shared/vtablefactory.cxx +++ b/bridges/source/cpp_uno/shared/vtablefactory.cxx @@ -25,12 +25,10 @@ #include <osl/thread.h> #include <osl/security.hxx> #include <osl/file.hxx> -#include <osl/mutex.hxx> #include <rtl/alloc.h> #include <rtl/ustring.hxx> #include <sal/log.hxx> #include <sal/types.h> -#include <typelib/typedescription.hxx> #include <memory> #include <new> diff --git a/bridges/source/jni_uno/jni_base.h b/bridges/source/jni_uno/jni_base.h index 0d02261adb2a..ce4f2833f6c7 100644 --- a/bridges/source/jni_uno/jni_base.h +++ b/bridges/source/jni_uno/jni_base.h @@ -26,14 +26,10 @@ #include <jvmaccess/unovirtualmachine.hxx> #include <jvmaccess/virtualmachine.hxx> -#include <osl/diagnose.h> - -#include <rtl/alloc.h> #include <rtl/ustring.hxx> #include <sal/log.hxx> #include <utility> -#include <uno/environment.h> #include <typelib/typedescription.h> diff --git a/bridges/source/jni_uno/jni_bridge.cxx b/bridges/source/jni_uno/jni_bridge.cxx index 5e09a8899690..c0465424ed4e 100644 --- a/bridges/source/jni_uno/jni_bridge.cxx +++ b/bridges/source/jni_uno/jni_bridge.cxx @@ -24,11 +24,11 @@ #include <memory> #include "jni_bridge.h" +#include "jni_helper.h" #include "jniunoenvironmentdata.hxx" #include <jvmaccess/unovirtualmachine.hxx> #include <rtl/ref.hxx> -#include <rtl/strbuf.hxx> #include <uno/lbnames.h> using namespace ::jni_uno; diff --git a/bridges/source/jni_uno/jni_bridge.h b/bridges/source/jni_uno/jni_bridge.h index ea55a139158b..ededca12c9f8 100644 --- a/bridges/source/jni_uno/jni_bridge.h +++ b/bridges/source/jni_uno/jni_bridge.h @@ -25,14 +25,11 @@ #include <cstddef> #include "jni_base.h" -#include "jni_helper.h" - -#include <osl/diagnose.h> +#include "jni_info.h" #include <uno/mapping.h> #include <uno/dispatcher.h> - -#include <com/sun/star/uno/XInterface.hpp> +#include <uno/environment.h> namespace jni_uno diff --git a/bridges/source/jni_uno/jni_data.cxx b/bridges/source/jni_uno/jni_data.cxx index 06e8467f7e7c..15abb31f5690 100644 --- a/bridges/source/jni_uno/jni_data.cxx +++ b/bridges/source/jni_uno/jni_data.cxx @@ -23,6 +23,7 @@ #include <memory> #include "jni_bridge.h" +#include "jni_helper.h" #include <rtl/strbuf.hxx> #include <uno/sequence2.h> diff --git a/bridges/source/jni_uno/jni_info.cxx b/bridges/source/jni_uno/jni_info.cxx index a48412897d1b..a1a837545530 100644 --- a/bridges/source/jni_uno/jni_info.cxx +++ b/bridges/source/jni_uno/jni_info.cxx @@ -21,14 +21,13 @@ #include <cassert> -#include "jni_bridge.h" +#include "jni_helper.h" #include <com/sun/star/uno/RuntimeException.hpp> #include <jvmaccess/unovirtualmachine.hxx> #include <rtl/string.hxx> #include <rtl/strbuf.hxx> -#include <rtl/ustrbuf.hxx> #include <uno/lbnames.h> diff --git a/bridges/source/jni_uno/jni_info.h b/bridges/source/jni_uno/jni_info.h index 7a18e553e400..492531759574 100644 --- a/bridges/source/jni_uno/jni_info.h +++ b/bridges/source/jni_uno/jni_info.h @@ -30,7 +30,6 @@ #include <rtl/ustring.hxx> #include <rtl/strbuf.hxx> -#include <uno/environment.h> #include <typelib/typedescription.hxx> #include <com/sun/star/uno/Type.hxx> diff --git a/bridges/source/jni_uno/jni_java2uno.cxx b/bridges/source/jni_uno/jni_java2uno.cxx index 53f761e82657..600fbdbcee7e 100644 --- a/bridges/source/jni_uno/jni_java2uno.cxx +++ b/bridges/source/jni_uno/jni_java2uno.cxx @@ -23,11 +23,12 @@ #include <algorithm> #include <cassert> -#include <sal/alloca.h> - #include "jni_bridge.h" +#include "jni_helper.h" #include "jniunoenvironmentdata.hxx" +#include <com/sun/star/uno/Exception.hpp> + namespace jni_uno { diff --git a/bridges/source/jni_uno/jni_uno2java.cxx b/bridges/source/jni_uno/jni_uno2java.cxx index 98666dfc1929..83cedc1212dc 100644 --- a/bridges/source/jni_uno/jni_uno2java.cxx +++ b/bridges/source/jni_uno/jni_uno2java.cxx @@ -25,14 +25,13 @@ #include <cstddef> #include <memory> -#include <sal/alloca.h> - #include <com/sun/star/uno/RuntimeException.hpp> #include <rtl/ustrbuf.hxx> #include <utility> #include "jni_bridge.h" +#include "jni_helper.h" #include "jniunoenvironmentdata.hxx" namespace |