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

Noel Grandin noel at peralex.com
Mon Jul 25 07:20:52 UTC 2016


 compilerplugins/clang/overrideparam.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 62462664bef3729c6929ce7e0b1fcb1161219828
Author: Noel Grandin <noel at peralex.com>
Date:   Mon Jul 25 09:20:01 2016 +0200

    fix for overrideparam loplugin
    
    Change-Id: Ibf4d3ffee0bfe335c479a15fcd183dfd8c207335

diff --git a/compilerplugins/clang/overrideparam.cxx b/compilerplugins/clang/overrideparam.cxx
index c6490d8..be76b5b 100644
--- a/compilerplugins/clang/overrideparam.cxx
+++ b/compilerplugins/clang/overrideparam.cxx
@@ -144,7 +144,7 @@ bool OverrideParam::hasSameDefaultParams(const ParmVarDecl * parmVarDecl, const
 {
     // don't know what this means, but it prevents a clang crash
     if (parmVarDecl->hasUninstantiatedDefaultArg() || superParmVarDecl->hasUninstantiatedDefaultArg()) {
-        return false;
+        return true;
     }
     const Expr* defaultArgExpr = parmVarDecl->getDefaultArg();
     const Expr* superDefaultArgExpr = superParmVarDecl->getDefaultArg();


More information about the Libreoffice-commits mailing list