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

Noel Grandin noel.grandin at collabora.co.uk
Mon Jun 26 09:00:54 UTC 2017


 compilerplugins/clang/store/constantfunction.cxx |   24 +++++++++++++++++++++++
 1 file changed, 24 insertions(+)

New commits:
commit 742f030d67f3d4179d3d0153cc16be35095eb580
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Mon Jun 26 09:07:17 2017 +0200

    update constantfunction loplugin
    
    didn't find anything useful, so just updating the exclusion lists
    
    Change-Id: I66d37aee185290f454e5ac0baeafd1f67bfaf106
    Reviewed-on: https://gerrit.libreoffice.org/39254
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Tested-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/compilerplugins/clang/store/constantfunction.cxx b/compilerplugins/clang/store/constantfunction.cxx
index 79ba7a4e1e53..343cdc6ffc14 100644
--- a/compilerplugins/clang/store/constantfunction.cxx
+++ b/compilerplugins/clang/store/constantfunction.cxx
@@ -423,6 +423,30 @@ bool ConstantFunction::VisitFunctionDecl(const FunctionDecl * pFunctionDecl) {
     if (aFunctionName == "doc_getTileMode") {
         return true;
     }
+    // apparently this will be useful at sometime in the future
+    if (aFunctionName == "LocaleDataWrapper::getCurrZeroChar") {
+        return true;
+    }
+    // marked with TODO
+    if (aFunctionName == "oglcanvas::TextLayout::draw") {
+        return true;
+    }
+    // called from the .sdi files
+    if (aFunctionName == "SfxObjectShell::StateView_Impl") {
+        return true;
+    }
+    // gtk callback
+    if (aFunctionName == "GtkSalFrame::signalVisibility") {
+        return true;
+    }
+    // platform-version-dependent code
+    if (aFunctionName == "(anonymous namespace)::ACTIVE_TAB") {
+        return true;
+    }
+    // SMIL callbacks
+    if (aFunctionName == "boost::sp_scalar_constructor_hook" || aFunctionName == "boost::sp_scalar_destructor_hook") {
+        return true;
+    }
 
 
 


More information about the Libreoffice-commits mailing list