compilerplugins/clang/redundantcast.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d7a9abdce528581362ac39185b51c9ff88e9d494
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Fri Aug 18 10:23:42 2017 +0200

    Report full type info (plus the desugared type as "aka")
    
    Change-Id: I647b1c3e479e0be01ed7ea16e1ad3dd9bed9ba6a

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;
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to