loplugin:cstylecast

and improve the error message in the plugin

Change-Id: I8719832a48e14c132f463340fbbc537845f82b0b
This commit is contained in:
Noel Grandin
2015-08-20 10:26:24 +02:00
parent fb2ad7ce2d
commit 5a58e809fc
2 changed files with 2 additions and 2 deletions

View File

@@ -198,7 +198,7 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) {
report(
DiagnosticsEngine::Warning, "%0 C-style cast from %1%2 to %3%4%5",
expr->getSourceRange().getBegin())
<< expr->getCastKindName() << incompFrom
<< incompFrom
<< expr->getSubExprAsWritten()->getType() << incompTo << expr->getType()
<< performs << expr->getSourceRange();
return true;