Lines Matching refs:IndexVar
254 const VarDecl *IndexVar) { in isIndexInSubscriptExpr() argument
257 areSameVariable(IndexVar, Idx->getDecl()); in isIndexInSubscriptExpr()
288 const VarDecl *IndexVar, const Expr *Obj, in isIndexInSubscriptExpr() argument
290 if (!SourceExpr || !Obj || !isIndexInSubscriptExpr(IndexExpr, IndexVar)) in isIndexInSubscriptExpr()
314 const VarDecl *IndexVar) { in isDereferenceOfOpCall() argument
316 exprReferencesVariable(IndexVar, OpCall->getArg(0)); in isDereferenceOfOpCall()
327 const VarDecl *IndexVar) { in isDereferenceOfUop() argument
329 exprReferencesVariable(IndexVar, Uop->getSubExpr()); in isDereferenceOfUop()
350 const VarDecl *IndexVar) { in isAliasDecl() argument
384 return isIndexInSubscriptExpr(E->getIdx(), IndexVar); in isAliasDecl()
388 return isDereferenceOfUop(cast<UnaryOperator>(Init), IndexVar); in isAliasDecl()
393 return isDereferenceOfOpCall(OpCall, IndexVar); in isAliasDecl()
396 return isIndexInSubscriptExpr(OpCall->getArg(1), IndexVar); in isAliasDecl()
408 return isIndexInSubscriptExpr(MemCall->getArg(0), IndexVar); in isAliasDecl()
450 const VarDecl *IndexVar, in ForLoopIndexUseVisitor() argument
455 : Context(Context), IndexVar(IndexVar), EndVar(EndVar), in ForLoopIndexUseVisitor()
507 if (isDereferenceOfUop(Uop, IndexVar)) { in TraverseUnaryOperator()
563 if (Obj && exprReferencesVariable(IndexVar, Obj)) { in TraverseMemberExpr()
611 if (isIndexInSubscriptExpr(Context, MemberCall->getArg(0), IndexVar, in TraverseCXXMemberCallExpr()
648 if (isDereferenceOfOpCall(OpCall, IndexVar)) { in TraverseCXXOperatorCallExpr()
657 if (isIndexInSubscriptExpr(Context, OpCall->getArg(1), IndexVar, in TraverseCXXOperatorCallExpr()
692 if (!isIndexInSubscriptExpr(E->getIdx(), IndexVar)) in TraverseArraySubscriptExpr()
747 if (areSameVariable(IndexVar, TheDecl) || in VisitDeclRefExpr()
748 exprReferencesVariable(IndexVar, E) || areSameVariable(EndVar, TheDecl) || in VisitDeclRefExpr()
783 if (areSameVariable(IndexVar, cast<ValueDecl>(VDecl))) { in TraverseLambdaCapture()
802 isAliasDecl(Context, S->getSingleDecl(), IndexVar)) { in VisitDeclStmt()