[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Tue Oct 20 02:44:26 PDT 2015
compilerplugins/clang/defaultparams.cxx | 7 -------
1 file changed, 7 deletions(-)
New commits:
commit 7ba3711606ec709217ade66d3281668ecadf2d50
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Oct 20 11:43:58 2015 +0200
Remove accidentally committed debug code
Change-Id: Iba6b97d1a4a0988a3b0404bd14097f92a500d8ae
diff --git a/compilerplugins/clang/defaultparams.cxx b/compilerplugins/clang/defaultparams.cxx
index 7a2facd..e6f6921 100644
--- a/compilerplugins/clang/defaultparams.cxx
+++ b/compilerplugins/clang/defaultparams.cxx
@@ -40,13 +40,6 @@ bool DefaultParams::VisitCallExpr(CallExpr * callExpr) {
if (n == 0 || !functionDecl->getParamDecl(n - 1)->hasDefaultArg()) {
return true;
}
-if(callExpr->getNumArgs()>n){
- report(
- DiagnosticsEngine::Warning, "TODO %0 != %1", callExpr->getLocStart())
- << callExpr->getNumArgs() << n << callExpr->getSourceRange();
- callExpr->dump();
- return true;
-}
assert(callExpr->getNumArgs() <= n); // can be < in template code
for (unsigned i = callExpr->getNumArgs(); i != 0;) {
--i;
More information about the Libreoffice-commits
mailing list