[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Mon Mar 30 04:49:13 PDT 2015
compilerplugins/clang/redundantcast.cxx | 4 ----
1 file changed, 4 deletions(-)
New commits:
commit 2688a8829771289d576415a9b933a1c30197cf01
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Mar 30 13:48:45 2015 +0200
Remove leftover debug code
Change-Id: I874fc4d677abb2646bffb4331a220f3812443b66
diff --git a/compilerplugins/clang/redundantcast.cxx b/compilerplugins/clang/redundantcast.cxx
index 22e2ddf..007a638 100644
--- a/compilerplugins/clang/redundantcast.cxx
+++ b/compilerplugins/clang/redundantcast.cxx
@@ -115,10 +115,6 @@ bool RedundantCast::VisitImplicitCastExpr(const ImplicitCastExpr * expr) {
Expr const * e = expr->getSubExpr()->IgnoreParenImpCasts();
while (isa<CXXConstCastExpr>(e)) {
auto cc = dyn_cast<CXXConstCastExpr>(e);
-if(!cc->getSubExpr()->getType()->isPointerType()){
- report(DiagnosticsEngine::Warning,"TODO",cc->getExprLoc())<<expr->getSourceRange();
- return true;
-}
if (expr->getType()->getAs<PointerType>()->getPointeeType()
.isAtLeastAsQualifiedAs(
cc->getSubExpr()->getType()
More information about the Libreoffice-commits
mailing list