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

Noel Grandin noel at peralex.com
Sun Jun 26 09:52:00 UTC 2016


 compilerplugins/clang/singlevalfields.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit cd01a470e438ac3f25f561221ef72e29cf8e1df8
Author: Noel Grandin <noel at peralex.com>
Date:   Sun Jun 26 11:50:48 2016 +0200

    dont ignore destructors
    
    generate more false+ than it helps to find interesting stuff
    
    Change-Id: I752f08a28e629bce00264108399b2a4c8afd388f

diff --git a/compilerplugins/clang/singlevalfields.cxx b/compilerplugins/clang/singlevalfields.cxx
index 688b0df..9fa9293 100644
--- a/compilerplugins/clang/singlevalfields.cxx
+++ b/compilerplugins/clang/singlevalfields.cxx
@@ -191,8 +191,7 @@ bool SingleValFields::VisitMemberExpr( const MemberExpr* memberExpr )
         return true;
 
     const CXXMethodDecl* methodDecl = dyn_cast_or_null<CXXMethodDecl>(get_top_FunctionDecl_from_Stmt(*memberExpr));
-    if (methodDecl && (methodDecl->isCopyAssignmentOperator() || methodDecl->isMoveAssignmentOperator()
-                       || dyn_cast<CXXDestructorDecl>(methodDecl)))
+    if (methodDecl && (methodDecl->isCopyAssignmentOperator() || methodDecl->isMoveAssignmentOperator()))
        return true;
 
     // walk up the tree until we find something interesting


More information about the Libreoffice-commits mailing list