From f4b1095451092cb251f15f160d00510e7d75aa46 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 19 Feb 2021 09:25:14 +0100 Subject: 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 --- compilerplugins/clang/test/referencecasting.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compilerplugins/clang') 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 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> getContinuations() { rtl::Reference noel1; -- cgit