Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang/lib/ASTMatchers/ASTMatchFinder.cpp | ||
|---|---|---|
| 245 | Should we be traversing the init statement before the loop variable so that the traversals happen in lexical order? | |
| clang/lib/ASTMatchers/ASTMatchFinder.cpp | ||
|---|---|---|
| 245 | Do you mean that in for (auto i : arr)
{
}to visit the arr before the auto i? I think visiting the auto i before the arr makes sense. | |
| clang/lib/ASTMatchers/ASTMatchFinder.cpp | ||
|---|---|---|
| 245 | Nope, I mean that in: for (int i = 12; auto j : {1, 2, 3, 4}) {}we should visit the int i = 12; before the auto j | |
Comment Actions
Update
| clang/lib/ASTMatchers/ASTMatchFinder.cpp | ||
|---|---|---|
| 245 | That was actually missing entirely. Added now. | |
Comment Actions
LGTM!
| clang/lib/ASTMatchers/ASTMatchFinder.cpp | ||
|---|---|---|
| 245 | I thought getRangeInit() was doing that already, so nice! | |
Should we be traversing the init statement before the loop variable so that the traversals happen in lexical order?