refactoring
This commit is contained in:
parent
d81a758850
commit
c820d2ba97
|
@ -1876,12 +1876,10 @@ bool isUniqueExpression(const Token* tok)
|
||||||
v.isPointer() == var->isPointer() &&
|
v.isPointer() == var->isPointer() &&
|
||||||
v.name() != var->name();
|
v.name() != var->name();
|
||||||
};
|
};
|
||||||
bool other = std::any_of(scope->varlist.cbegin(), scope->varlist.cend(), pred);
|
if (std::any_of(scope->varlist.cbegin(), scope->varlist.cend(), pred))
|
||||||
if (other)
|
|
||||||
return false;
|
return false;
|
||||||
if (fun) {
|
if (fun) {
|
||||||
other = std::any_of(fun->argumentList.cbegin(), fun->argumentList.cend(), pred);
|
if (std::any_of(fun->argumentList.cbegin(), fun->argumentList.cend(), pred))
|
||||||
if (other)
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (!isUniqueExpression(tok->astOperand1())) {
|
} else if (!isUniqueExpression(tok->astOperand1())) {
|
||||||
|
|
Loading…
Reference in New Issue