Lines Matching refs:OpCall

223   if (const auto *OpCall = dyn_cast<CXXOperatorCallExpr>(E)) {  in getDereferenceOperand()  local
224 return OpCall->getOperator() == OO_Star && OpCall->getNumArgs() == 1 in getDereferenceOperand()
225 ? OpCall->getArg(0) in getDereferenceOperand()
313 static bool isDereferenceOfOpCall(const CXXOperatorCallExpr *OpCall, in isDereferenceOfOpCall() argument
315 return OpCall->getOperator() == OO_Star && OpCall->getNumArgs() == 1 && in isDereferenceOfOpCall()
316 exprReferencesVariable(IndexVar, OpCall->getArg(0)); in isDereferenceOfOpCall()
391 const auto *OpCall = cast<CXXOperatorCallExpr>(Init); in isAliasDecl() local
392 if (OpCall->getOperator() == OO_Star) in isAliasDecl()
393 return isDereferenceOfOpCall(OpCall, IndexVar); in isAliasDecl()
394 if (OpCall->getOperator() == OO_Subscript) { in isAliasDecl()
395 assert(OpCall->getNumArgs() == 2); in isAliasDecl()
396 return isIndexInSubscriptExpr(OpCall->getArg(1), IndexVar); in isAliasDecl()
645 CXXOperatorCallExpr *OpCall) { in TraverseCXXOperatorCallExpr() argument
646 switch (OpCall->getOperator()) { in TraverseCXXOperatorCallExpr()
648 if (isDereferenceOfOpCall(OpCall, IndexVar)) { in TraverseCXXOperatorCallExpr()
649 addUsage(Usage(OpCall)); in TraverseCXXOperatorCallExpr()
655 if (OpCall->getNumArgs() != 2) in TraverseCXXOperatorCallExpr()
657 if (isIndexInSubscriptExpr(Context, OpCall->getArg(1), IndexVar, in TraverseCXXOperatorCallExpr()
658 OpCall->getArg(0), ContainerExpr, in TraverseCXXOperatorCallExpr()
660 addUsage(Usage(OpCall)); in TraverseCXXOperatorCallExpr()
668 return VisitorBase::TraverseCXXOperatorCallExpr(OpCall); in TraverseCXXOperatorCallExpr()