diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-02-03 15:28:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-02-03 15:38:03 +0000 |
commit | 17cf2c278d9545dd6c9a9f132e52eae0ae482279 (patch) | |
tree | 12e10bfdbfda157de8aef58bd8337858d15e53b6 /compilerplugins/clang | |
parent | 5e0748d5bc12f789f9228d514294f8dcb0484b09 (diff) |
Fix misuse of TagDecl::hasDefinition
...that started to cause false
> In file included from svl/source/items/itemiter.cxx:20:
> include/svl/itemiter.hxx:25:1: error: SfxPoolItem subclass SfxPoolItem declares new fields, but does not override operator== [loplugin:sfxpoolitem]
> class SfxPoolItem;
> ^~~~~~~~~~~~~~~~~
etc. now as a side effect of
<https://github.com/llvm/llvm-project/commit/b6121432da79c4b3d21f191864ff6c583e2e62eb>
"[C++20] Fix a crash with modules."
Change-Id: Ibbf7a7c840ecea2605d6ea76afd04a2c2720e54d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146544
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r-- | compilerplugins/clang/sfxpoolitem.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/sfxpoolitem.cxx b/compilerplugins/clang/sfxpoolitem.cxx index 801689f0f3de..79ef64dd243e 100644 --- a/compilerplugins/clang/sfxpoolitem.cxx +++ b/compilerplugins/clang/sfxpoolitem.cxx @@ -93,7 +93,7 @@ bool SfxPoolItem::VisitCXXRecordDecl(const CXXRecordDecl* decl) if (ignoreLocation(decl)) { return true; } - if (!decl->hasDefinition()) { + if (!decl->isThisDeclarationADefinition()) { return true; } // check if this class is derived from Window |