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

Stephan Bergmann sbergman at redhat.com
Wed Nov 29 09:59:24 UTC 2017


 compilerplugins/clang/badstatics.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 2849775c796197ba4707fdd7de9822bb3307391a
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Nov 29 10:58:50 2017 +0100

    TODO: silence new loplugin:badstatics for now
    
    Change-Id: Ia57dd190a173f664b0c624617b13f2876008835a

diff --git a/compilerplugins/clang/badstatics.cxx b/compilerplugins/clang/badstatics.cxx
index 3b375311b5bf..17cbb0d8e2ba 100644
--- a/compilerplugins/clang/badstatics.cxx
+++ b/compilerplugins/clang/badstatics.cxx
@@ -213,6 +213,12 @@ public:
             {
                 return true;
             }
+            //TODO: Ignore for now to unbreak the build post
+            // d516c5c9819dcd7dc6dded2f8f9d9e44061b23c0 "lokdialog: Move the LOKWindowId <->
+            // VclPtr<Window> mapping to Window":
+            if (name == "sLOKWindows") { // vcl/source/window/window.cxx
+                return true;
+            }
             // ignore pointers, nothing happens to them on shutdown
             QualType const pCanonical(pVarDecl->getType().getUnqualifiedType().getCanonicalType());
             if (pCanonical->isPointerType()) {


More information about the Libreoffice-commits mailing list