diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-02-19 09:25:14 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-02-19 11:20:53 +0100 |
commit | f4b1095451092cb251f15f160d00510e7d75aa46 (patch) | |
tree | 326ead3facf6e7847c5f32d7321f19e79524e581 /compilerplugins | |
parent | ccdd11b61f94bfb188676fa5ad2aab63949dd5b3 (diff) |
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.cxx | 4 |
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; |