Skip to content

Commit d091ff4

Browse files
committed
[NFC] Iterator's name from I to It
1 parent 52bc67c commit d091ff4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ AST_MATCHER_P(Stmt, hasPreTwoVarDecl,
117117
if (!C)
118118
return false;
119119

120-
const auto I = llvm::find(llvm::reverse(C->body()), &Node);
121-
assert(I != C->body_rend() && "C is parent of Node");
122-
return matchNVarDeclStartingWith(I + 1, C->body_rend(), InnerMatchers, Finder,
123-
Builder, true);
120+
const auto It = llvm::find(llvm::reverse(C->body()), &Node);
121+
assert(It != C->body_rend() && "C is parent of Node");
122+
return matchNVarDeclStartingWith(It + 1, C->body_rend(), InnerMatchers,
123+
Finder, Builder, true);
124124
}
125125

126126
/// Matches a Stmt whose parent is a CompoundStmt, and which is directly
@@ -136,9 +136,9 @@ AST_MATCHER_P(Stmt, hasNextTwoVarDecl,
136136
if (!C)
137137
return false;
138138

139-
const auto *I = llvm::find(C->body(), &Node);
140-
assert(I != C->body_end() && "C is parent of Node");
141-
return matchNVarDeclStartingWith(I + 1, C->body_end(), InnerMatchers, Finder,
139+
const auto *It = llvm::find(C->body(), &Node);
140+
assert(It != C->body_end() && "C is parent of Node");
141+
return matchNVarDeclStartingWith(It + 1, C->body_end(), InnerMatchers, Finder,
142142
Builder);
143143
}
144144

0 commit comments

Comments
 (0)