Lines Matching defs:IndexVar
246 /// IndexVar.
254 const VarDecl *IndexVar) {
257 areSameVariable(IndexVar, Idx->getDecl());
261 /// IndexVar, Obj is the same expression as SourceExpr after all parens and
288 const VarDecl *IndexVar, const Expr *Obj,
290 if (!SourceExpr || !Obj || !isIndexInSubscriptExpr(IndexExpr, IndexVar))
306 /// IndexVar.
314 const VarDecl *IndexVar) {
316 exprReferencesVariable(IndexVar, OpCall->getArg(0));
319 /// Returns true when Uop is a dereference of IndexVar.
327 const VarDecl *IndexVar) {
329 exprReferencesVariable(IndexVar, Uop->getSubExpr());
350 const VarDecl *IndexVar) {
384 return isIndexInSubscriptExpr(E->getIdx(), IndexVar);
388 return isDereferenceOfUop(cast<UnaryOperator>(Init), IndexVar);
393 return isDereferenceOfOpCall(OpCall, IndexVar);
396 isIndexInSubscriptExpr(OpCall->getArg(1), IndexVar);
408 return isIndexInSubscriptExpr(MemCall->getArg(0), IndexVar);
450 const VarDecl *IndexVar,
455 : Context(Context), IndexVar(IndexVar), EndVar(EndVar),
491 /// If the unary operator is a dereference of IndexVar, include it
505 if (isDereferenceOfUop(Uop, IndexVar)) {
514 /// IndexVar, include it as a valid usage and prune the traversal.
561 if (Obj && exprReferencesVariable(IndexVar, Obj)) {
591 /// IndexVar as the single argument, include it as a valid usage and prune
609 if (isIndexInSubscriptExpr(Context, MemberCall->getArg(0), IndexVar,
623 /// If an overloaded operator call is a dereference of IndexVar or
624 /// a subscript of the container with IndexVar as the single argument,
646 if (isDereferenceOfOpCall(OpCall, IndexVar)) {
655 if (isIndexInSubscriptExpr(Context, OpCall->getArg(1), IndexVar,
669 /// If we encounter an array with IndexVar as the index of an
690 if (!isIndexInSubscriptExpr(E->getIdx(), IndexVar))
711 /// If we encounter a reference to IndexVar in an unpruned branch of the
714 /// This determines the set of convertible loops: any usages of IndexVar
745 if (areSameVariable(IndexVar, TheDecl) ||
746 exprReferencesVariable(IndexVar, E) || areSameVariable(EndVar, TheDecl) ||
781 if (areSameVariable(IndexVar, VDecl)) {
802 isAliasDecl(Context, S->getSingleDecl(), IndexVar)) {