[Libreoffice-commits] core.git: compilerplugins/clang

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Fri May 31 10:22:55 UTC 2019


 compilerplugins/clang/refcounting.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 6f74de514e6a384b549ce2136037e03a60b1c54f
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed May 29 11:33:59 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri May 31 12:22:10 2019 +0200

    tdf#114596 compilerplugins: add exception to [loplugin:refcounting]
    
    Change-Id: I94a1d4fcacc7907df21b05fd773d3273e1a0d6a2
    Reviewed-on: https://gerrit.libreoffice.org/73147
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/compilerplugins/clang/refcounting.cxx b/compilerplugins/clang/refcounting.cxx
index 537885ad01e8..7a49f0573bf4 100644
--- a/compilerplugins/clang/refcounting.cxx
+++ b/compilerplugins/clang/refcounting.cxx
@@ -108,6 +108,11 @@ bool containsXInterfaceSubclass(const clang::Type* pType0) {
         if (isDerivedFrom(pRecordDecl, [](Decl const * decl) -> bool { return bool(loplugin::DeclCheck(decl).Class("OBookmarkContainer").Namespace("dbaccess").GlobalNamespace()); })) { // module dbaccess
             return false;
         }
+
+        // tdf#114596
+        if (isDerivedFrom(pRecordDecl, [](Decl const * decl) -> bool { return bool(loplugin::DeclCheck(decl).Class("OCollection").Namespace("dbaccess").GlobalNamespace()); })) { // module dbaccess
+            return false;
+        }
     }
     if (pRecordDecl) {
         const ClassTemplateSpecializationDecl* pTemplate = dyn_cast<ClassTemplateSpecializationDecl>(pRecordDecl);


More information about the Libreoffice-commits mailing list