diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-20 10:26:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-20 10:26:24 +0200 |
commit | 5a58e809fceada72cecc389588bcd792eb3d8105 (patch) | |
tree | 56fdd57e86aeb9d7d89a41d2566b91622de73051 /compilerplugins | |
parent | fb2ad7ce2d201d9d2504274ad7e1bd0e803d9902 (diff) |
loplugin:cstylecast
and improve the error message in the plugin
Change-Id: I8719832a48e14c132f463340fbbc537845f82b0b
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/cstylecast.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/cstylecast.cxx b/compilerplugins/clang/cstylecast.cxx index 9d96ac6d714c..79971c307a39 100644 --- a/compilerplugins/clang/cstylecast.cxx +++ b/compilerplugins/clang/cstylecast.cxx @@ -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; |