forked from qt-creator/qt-creator
		
	CppTools: Categorize the delete operator as a write access
... in the "Find Usages" results. Change-Id: Ib399bf762c717b7d4439be26b9180574aefce7e3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
		@@ -348,6 +348,8 @@ Usage::Type FindUsages::getType(int line, int column, int tokenIndex)
 | 
			
		||||
        }
 | 
			
		||||
        if ((*it)->asCall())
 | 
			
		||||
            return checkPotentialWrite(getUsageTypeForCall(it), it + 1);
 | 
			
		||||
        if ((*it)->asDeleteExpression())
 | 
			
		||||
            return Usage::Type::Write;
 | 
			
		||||
        if (const auto binExpr = (*it)->asBinaryExpression()) {
 | 
			
		||||
            if (binExpr->left_expression == *(it - 1) && isAssignment(binExpr->binary_op_token))
 | 
			
		||||
                return checkPotentialWrite(Usage::Type::Write, it + 1);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user