Report full type info (plus the desugared type as "aka")

Change-Id: I647b1c3e479e0be01ed7ea16e1ad3dd9bed9ba6a
This commit is contained in:
Stephan Bergmann 2017-08-18 10:23:42 +02:00
parent e5eedf7af4
commit d7a9abdce5

View File

@ -645,7 +645,7 @@ bool RedundantCast::VisitCXXFunctionalCastExpr(CXXFunctionalCastExpr const * exp
report( report(
DiagnosticsEngine::Warning, DiagnosticsEngine::Warning,
"redundant functional cast from %0 to %1", expr->getExprLoc()) "redundant functional cast from %0 to %1", expr->getExprLoc())
<< t2 << t1 << expr->getSourceRange(); << sub->getType() << t1 << expr->getSourceRange();
return true; return true;
} }