[Libreoffice-commits] core.git: compilerplugins/clang

Stephan Bergmann sbergman at redhat.com
Fri Aug 18 08:25:41 UTC 2017


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

New commits:
commit d7a9abdce528581362ac39185b51c9ff88e9d494
Author: Stephan Bergmann <sbergman at 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;
 }
 


More information about the Libreoffice-commits mailing list