diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-09-25 15:40:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-09-25 20:39:05 +0200 |
commit | 7f75bfd0f6b1bf4debb69e96c114e453c62685f8 (patch) | |
tree | 25d9b35e6a972cceaeeca3271cbdd8c723cdbaa8 /include/unotools | |
parent | c90de36ede6d35e2cf1ebea195e0ff28f618f319 (diff) |
Don't enable the requires clause for Clang 15
similar to 5831d5f03a5ea5b89984574ffe436f38500726da
Don't enable the requires clause for some Xcode Clang
Step #3 - "compile-honggfuzz-address-x86_64": checking whether Clang is new enough... yes (15.0.0)
In file included from libreoffice/core-clang/animations/source/animcore/animcore.cxx:20:
In file included from libreoffice/core-clang/workdir/UnoApiHeadersTarget/offapi/normal/com/sun/star/util/XCloneable.hpp:8:
libreoffice/core-clang/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XInterface.hpp:32:65: error: invalid application of 'sizeof' to an incomplete type 'animcore::(anonymous namespace)::AnimationNode'
template<typename T> inline constexpr auto isUnoInterfaceType = sizeof (T) && IsUnoInterfaceType<T>::value;
^~~~~~~~~~
libreoffice/core-clang/include/unotools/weakref.hxx:119:33: note: in instantiation of variable template specialization 'cppu::detail::isUnoInterfaceType' requested here
requires(!cppu::detail::isUnoInterfaceType<interface_type>)
^
libreoffice/core-clang/animations/source/animcore/animcore.cxx:309:44: note: in instantiation of template class 'unotools::WeakReference<animcore::(anonymous namespace)::AnimationNode>' requested here
unotools::WeakReference<AnimationNode> mxParent;
^
libreoffice/core-clang/animations/source/animcore/animcore.cxx:121:7: note: definition of 'animcore::(anonymous namespace)::AnimationNode' is not complete until the closing '}'
class AnimationNode final: public AnimationNodeBase
^
Change-Id: I4feb54d5739464d356e2769eeb368c368cc29104
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157250
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'include/unotools')
-rw-r--r-- | include/unotools/weakref.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/unotools/weakref.hxx b/include/unotools/weakref.hxx index 9679579feb1e..14ee6d424f62 100644 --- a/include/unotools/weakref.hxx +++ b/include/unotools/weakref.hxx @@ -115,7 +115,7 @@ public: @return hard reference or null, if the weakly referenced interface has gone */ rtl::Reference<interface_type> SAL_CALL get() const -#if __cplusplus >= 202002L && !(defined __clang__ && __clang_major__ <= 14) +#if __cplusplus >= 202002L && !(defined __clang__ && __clang_major__ <= 15) requires(!cppu::detail::isUnoInterfaceType<interface_type>) #endif { |