summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-21 10:32:16 +0200
committerNoel Grandin <noel@peralex.com>2015-08-21 10:33:08 +0200
commitd163e206a773f34435cf73dd65901f851d6d6964 (patch)
treeaf01c81a294ff01e40d786b9e12884345e4e389d /compilerplugins
parent54f1a882ccd8895a72abc05665591de9b06335ad (diff)
loplugin:cstylecast, put the CastKind info back
Change-Id: Ia438d3a383cdc6c0343fa116488730a130f634af
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/cstylecast.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/compilerplugins/clang/cstylecast.cxx b/compilerplugins/clang/cstylecast.cxx
index cc360c7eef68..19c48488543a 100644
--- a/compilerplugins/clang/cstylecast.cxx
+++ b/compilerplugins/clang/cstylecast.cxx
@@ -196,11 +196,12 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) {
performs = std::string(" (performs: ") + perf + ")";
}
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())
- << incompFrom
- << expr->getSubExprAsWritten()->getType() << incompTo << expr->getType()
- << performs << expr->getSourceRange();
+ << incompFrom << expr->getSubExprAsWritten()->getType()
+ << incompTo << expr->getType() << performs
+ << expr->getCastKindName()
+ << expr->getSourceRange();
return true;
}