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