[Libreoffice-commits] core.git: compilerplugins/clang
Miklos Vajna (via logerrit)
logerrit at kemper.freedesktop.org
Fri Feb 19 10:21:34 UTC 2021
compilerplugins/clang/test/referencecasting.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit f4b1095451092cb251f15f160d00510e7d75aa46
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Fri Feb 19 09:25:14 2021 +0100
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Feb 19 11:20:53 2021 +0100
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 at collabora.com>
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;
More information about the Libreoffice-commits
mailing list