isAssignmentOp is not available on older clang
Change-Id: I1ee7a8266a2ad0e14a28fab7aa0095b15647d5b0
This commit is contained in:
@@ -166,7 +166,9 @@ try_again:
|
|||||||
}
|
}
|
||||||
} else if (const CXXOperatorCallExpr * operatorCall = dyn_cast<CXXOperatorCallExpr>(parent))
|
} else if (const CXXOperatorCallExpr * operatorCall = dyn_cast<CXXOperatorCallExpr>(parent))
|
||||||
{
|
{
|
||||||
if (operatorCall->isAssignmentOp()) {
|
auto oo = operatorCall->getOperator();
|
||||||
|
if (oo == OO_Equal
|
||||||
|
|| (oo >= OO_PlusEqual && oo <= OO_GreaterGreaterEqual)) {
|
||||||
bWrite = true;
|
bWrite = true;
|
||||||
} else {
|
} else {
|
||||||
bRead = true;
|
bRead = true;
|
||||||
|
Reference in New Issue
Block a user