diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:30:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:30:14 +0200 |
commit | f1bbda1c26dc16642038ea70288eec60b43520b6 (patch) | |
tree | 6169290475356d6d0d1a74ec0d2ebf25f187be95 /compilerplugins/clang/cstylecast.cxx | |
parent | 642f4e574c80a29a226373a9d33273b113ebf689 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Ic714e7f887b421e491544b7c985351077170344d
Diffstat (limited to 'compilerplugins/clang/cstylecast.cxx')
-rw-r--r-- | compilerplugins/clang/cstylecast.cxx | 8 |
1 files changed, 0 insertions, 8 deletions
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; |