office-gobmx/bridges/source/cpp_uno
Stephan Bergmann a459e6e798 Avoid loplugin:noexcept
...when building on Linux with Clang -stdlib=libc++,

> In file included from bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:41:
> bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx:156:51: error: Replace legacy dynamic 'throw ()' exception specification with 'noexcept' [loplugin:noexcept]
> extern "C" __cxa_eh_globals * __cxa_get_globals() throw();
>                                                   ^~~~~~~

(The situation with respect to these exception specifications is a bit unclear,
recent <https://github.com/itanium-cxx-abi/cxx-abi/blob/main/abi-eh.html>
doesn't mention any exception specifications for those effectively extern "C"
functions, and recent
<https://github.com/llvm/llvm-project/blob/main/libcxxabi/src/cxa_exception.h>
doesn't have an exception specification for __cxa_get_globals and recent
<https://github.com/llvm/llvm-project/blob/main/libcxxabi/include/cxxabi.h>
doesn't have one for __cxa_current_exception_type though it has `throw()` for
__cxa_allocate_exception.  On the other hand, recent
<https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libstdc%2B%2B-v3/libsupc%2B%2B/cxxabi.h>
and
<https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libstdc%2B%2B-v3/libsupc%2B%2B/cxxabi_init_exception.h>
have _GLIBCXX_NOTHROW exception specifications for all three functions, which
expands to `noexcept` for C++11 and beyond.)

Change-Id: I1582c9d3b42977af011d4dc49674fdf12d5ea5ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130926
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-03-03 17:37:54 +01:00
..
gcc3_aix_powerpc
gcc3_ios
gcc3_linux_aarch64
gcc3_linux_alpha
gcc3_linux_arm
gcc3_linux_hppa
gcc3_linux_ia64
gcc3_linux_intel annocheck warning about missing .note.gnu.property section 2022-01-06 14:56:27 +01:00
gcc3_linux_m68k
gcc3_linux_mips
gcc3_linux_mips64
gcc3_linux_powerpc
gcc3_linux_powerpc64
gcc3_linux_s390
gcc3_linux_s390x
gcc3_linux_sparc
gcc3_linux_sparc64
gcc3_linux_x86-64 Avoid loplugin:noexcept 2022-03-03 17:37:54 +01:00
gcc3_macosx_x86-64
gcc3_solaris_intel
gcc3_solaris_sparc
gcc3_wasm WASM UNO: add a minimal dummy bridge 2022-01-19 14:26:09 +01:00
msvc_shared
msvc_win32_arm64
msvc_win32_intel
msvc_win32_x86-64
shared Let loplugin:nullptr look into template instantiations 2022-01-15 15:58:07 +01:00