summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/redundantcast.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-18 10:23:42 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-08-18 10:23:42 +0200
commitd7a9abdce528581362ac39185b51c9ff88e9d494 (patch)
treec3284ddff0716700f1e1db08e5a4669615f41bbc /compilerplugins/clang/redundantcast.cxx
parente5eedf7af4fcb38162773bff74c89243923a04eb (diff)
Report full type info (plus the desugared type as "aka")
Change-Id: I647b1c3e479e0be01ed7ea16e1ad3dd9bed9ba6a
Diffstat (limited to 'compilerplugins/clang/redundantcast.cxx')
-rw-r--r--compilerplugins/clang/redundantcast.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}