dont ignore destructors
generate more false+ than it helps to find interesting stuff Change-Id: I752f08a28e629bce00264108399b2a4c8afd388f
This commit is contained in:
@@ -191,8 +191,7 @@ bool SingleValFields::VisitMemberExpr( const MemberExpr* memberExpr )
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
const CXXMethodDecl* methodDecl = dyn_cast_or_null<CXXMethodDecl>(get_top_FunctionDecl_from_Stmt(*memberExpr));
|
const CXXMethodDecl* methodDecl = dyn_cast_or_null<CXXMethodDecl>(get_top_FunctionDecl_from_Stmt(*memberExpr));
|
||||||
if (methodDecl && (methodDecl->isCopyAssignmentOperator() || methodDecl->isMoveAssignmentOperator()
|
if (methodDecl && (methodDecl->isCopyAssignmentOperator() || methodDecl->isMoveAssignmentOperator()))
|
||||||
|| dyn_cast<CXXDestructorDecl>(methodDecl)))
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// walk up the tree until we find something interesting
|
// walk up the tree until we find something interesting
|
||||||
|
Reference in New Issue
Block a user