[Libreoffice-commits] core.git: compilerplugins/clang
Noel Grandin
noel at peralex.com
Fri Aug 21 01:33:49 PDT 2015
compilerplugins/clang/cstylecast.cxx | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
New commits:
commit d163e206a773f34435cf73dd65901f851d6d6964
Author: Noel Grandin <noel at peralex.com>
Date: Fri Aug 21 10:32:16 2015 +0200
loplugin:cstylecast, put the CastKind info back
Change-Id: Ia438d3a383cdc6c0343fa116488730a130f634af
diff --git a/compilerplugins/clang/cstylecast.cxx b/compilerplugins/clang/cstylecast.cxx
index cc360c7..19c4848 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;
}
More information about the Libreoffice-commits
mailing list