compilerplugins/clang/test/unreffun.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
New commits: commit c9b0dcb767343865fc374c712b2fe768cd8aca32 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Mar 2 20:53:45 2023 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Mar 6 08:38:39 2023 +0000 The mentioned bug is fixed in Clang 17 trunk now Change-Id: Idb62b1b71a9f6fefc9225706655ca016304f1c42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148191 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/compilerplugins/clang/test/unreffun.cxx b/compilerplugins/clang/test/unreffun.cxx index fc202b80f378..315c699b7748 100644 --- a/compilerplugins/clang/test/unreffun.cxx +++ b/compilerplugins/clang/test/unreffun.cxx @@ -7,6 +7,8 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include "config_clang.h" + #include "unreffun.hxx" template <typename> struct S @@ -38,10 +40,10 @@ void l() // expected-error {{Unreferenced externally visible function definition void m() { -//TODO: The below would produce a false "Unreferenced externally invisible function definition" for -// Local::f due to the Clang bug addressed at <https://reviews.llvm.org/D145123> "Call -// MarkVirtualMembersReferenced on an actual class definition": -#if 0 +// The below produced a false "Unreferenced externally invisible function definition" for Local::f +// prior to <https://github.com/llvm/llvm-project/commit/d812488d3c54c07f24d4bef79e329f17e7f19c3b> +// "Call MarkVirtualMembersReferenced on an actual class definition" in Clang 17: +#if CLANG_VERSION >= 170000 struct Local; #endif struct Local