From d7a9abdce528581362ac39185b51c9ff88e9d494 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 18 Aug 2017 10:23:42 +0200 Subject: Report full type info (plus the desugared type as "aka") Change-Id: I647b1c3e479e0be01ed7ea16e1ad3dd9bed9ba6a --- compilerplugins/clang/redundantcast.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compilerplugins/clang') diff --git a/compilerplugins/clang/redundantcast.cxx b/compilerplugins/clang/redundantcast.cxx index b9f97dce0c6b..03e48f8fe261 100644 --- a/compilerplugins/clang/redundantcast.cxx +++ b/compilerplugins/clang/redundantcast.cxx @@ -645,7 +645,7 @@ bool RedundantCast::VisitCXXFunctionalCastExpr(CXXFunctionalCastExpr const * exp report( DiagnosticsEngine::Warning, "redundant functional cast from %0 to %1", expr->getExprLoc()) - << t2 << t1 << expr->getSourceRange(); + << sub->getType() << t1 << expr->getSourceRange(); return true; } -- cgit