Kaydet (Commit) d163e206 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:cstylecast, put the CastKind info back

Change-Id: Ia438d3a383cdc6c0343fa116488730a130f634af
üst 54f1a882
...@@ -196,11 +196,12 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) { ...@@ -196,11 +196,12 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) {
performs = std::string(" (performs: ") + perf + ")"; performs = std::string(" (performs: ") + perf + ")";
} }
report( report(
DiagnosticsEngine::Warning, "C-style cast from %1%2 to %3%4%5", DiagnosticsEngine::Warning, "C-style cast from %0%1 to %2%3%4 (%5)",
expr->getSourceRange().getBegin()) expr->getSourceRange().getBegin())
<< incompFrom << incompFrom << expr->getSubExprAsWritten()->getType()
<< expr->getSubExprAsWritten()->getType() << incompTo << expr->getType() << incompTo << expr->getType() << performs
<< performs << expr->getSourceRange(); << expr->getCastKindName()
<< expr->getSourceRange();
return true; return true;
} }
......
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