Kaydet (Commit) f1bbda1c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cstylecast: deal with remaining pointer casts

Change-Id: Ic714e7f887b421e491544b7c985351077170344d
üst 642f4e57
...@@ -165,14 +165,6 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) { ...@@ -165,14 +165,6 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) {
expr->getTypeAsWritten())) expr->getTypeAsWritten()))
{ {
perf = "const_cast"; 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; std::string incompFrom;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment