Merge remote-tracking branch 'origin/4.14' into master

Change-Id: Ib4363db8e71488e1d13e8c1012023abfaf06286b
This commit is contained in:
Eike Ziller
2020-10-22 14:38:01 +02:00
22 changed files with 163 additions and 84 deletions

View File

@@ -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);