diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-29 09:17:00 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-29 09:17:47 +0200 |
commit | 0bd502af47b53bc4340df7874bd726361e3bbad9 (patch) | |
tree | 813d8fb60a4a5fe8bf4cbf316fb73621247647f3 /compilerplugins/clang | |
parent | make gbuild a bit more quiet by default (diff) | |
download | core-0bd502af47b53bc4340df7874bd726361e3bbad9.tar.gz core-0bd502af47b53bc4340df7874bd726361e3bbad9.zip |
Clean up remaining C-style casts among void pointers
Change-Id: I1b49c020d597b569e330482f4dbf20c15ccdae3f
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r-- | compilerplugins/clang/cstylecast.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compilerplugins/clang/cstylecast.cxx b/compilerplugins/clang/cstylecast.cxx index fcc1fc828862..47e8d17b8977 100644 --- a/compilerplugins/clang/cstylecast.cxx +++ b/compilerplugins/clang/cstylecast.cxx @@ -95,9 +95,6 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) { if (t1->isPointerType() && t2->isPointerType()) { t1 = t1->getAs<PointerType>()->getPointeeType(); t2 = t2->getAs<PointerType>()->getPointeeType(); - if (t2->isVoidType()) { - return true; - } } else if (t1->isLValueReferenceType() && t2->isLValueReferenceType()) { t1 = t1->getAs<LValueReferenceType>()->getPointeeType(); t2 = t2->getAs<LValueReferenceType>()->getPointeeType(); |