summaryrefslogtreecommitdiffstats
path: root/compilerplugins
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-02-19 09:25:14 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-02-19 11:20:53 +0100
commitf4b1095451092cb251f15f160d00510e7d75aa46 (patch)
tree326ead3facf6e7847c5f32d7321f19e79524e581 /compilerplugins
parenttdf#140058 repair which Bullet and Numbering label is changed (diff)
downloadcore-f4b1095451092cb251f15f160d00510e7d75aa46.tar.gz
core-f4b1095451092cb251f15f160d00510e7d75aa46.zip
compilerplugins: fix referencecasting for clang 7.0.1
The error was: error: 'error' diagnostics seen but not expected: File /libreoffice/master-clang/compilerplugins/clang/test/referencecasting.cxx Line 113: unnecessary get() call [loplugin:referencecasting] 1 error generated. I.e. it seems clang7 has the same problem as clang5 that it emits multiple diagnostics for that problematic code line. Adapt the ifdef accordingly. Change-Id: I232ff9a158663e2cb3030e51f655249ff315361e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111196 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/test/referencecasting.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/test/referencecasting.cxx b/compilerplugins/clang/test/referencecasting.cxx
index bb52cfbfdd17..a6850ed660ea 100644
--- a/compilerplugins/clang/test/referencecasting.cxx
+++ b/compilerplugins/clang/test/referencecasting.cxx
@@ -104,8 +104,8 @@ void test(rtl::Reference<FooStream> l)
(void)a2;
}
// not should about the exact version I should use here,
-// clang 5.0.2 visits the CXXConstructorExpr inside the initializer, while clang 11 does not
-#if CLANG_VERSION >= 60000
+// clang 7.0.1 visits the CXXConstructorExpr inside the initializer, while clang 11 does not
+#if CLANG_VERSION >= 80000
css::uno::Sequence<css::uno::Reference<css::io::XStreamListener>> getContinuations()
{
rtl::Reference<FooStream> noel1;