diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-03-02 20:53:45 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-03-06 08:38:39 +0000 |
commit | c9b0dcb767343865fc374c712b2fe768cd8aca32 (patch) | |
tree | 3b401c4648307bec2af3e465cf0169877232fb67 /compilerplugins | |
parent | 288c0920a8475f9f2c537212e04aa7649192ad8c (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/test/unreffun.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
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 |