From f1bbda1c26dc16642038ea70288eec60b43520b6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 8 Jun 2015 16:30:14 +0200 Subject: loplugin:cstylecast: deal with remaining pointer casts Change-Id: Ic714e7f887b421e491544b7c985351077170344d --- compilerplugins/clang/cstylecast.cxx | 8 -------- 1 file changed, 8 deletions(-) (limited to 'compilerplugins/clang/cstylecast.cxx') diff --git a/compilerplugins/clang/cstylecast.cxx b/compilerplugins/clang/cstylecast.cxx index dadba429bce9..9d96ac6d714c 100644 --- a/compilerplugins/clang/cstylecast.cxx +++ b/compilerplugins/clang/cstylecast.cxx @@ -165,14 +165,6 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) { expr->getTypeAsWritten())) { perf = "const_cast"; - } else if (expr->getSubExprAsWritten()->getType() != expr->getType() - && (!t1.isMoreQualifiedThan(t2) - || ((t1.getUnqualifiedType().getCanonicalType() - .getTypePtr()) - != (t2.getUnqualifiedType().getCanonicalType() - .getTypePtr())))) - { - return true; } } std::string incompFrom; -- cgit