[clang-move] Use a range-based for loop (NFC) (#109438)
This commit is contained in:
parent
533c7ff2db
commit
9be7f77484
@ -78,8 +78,8 @@ HelperDeclRefGraph::getReachableNodes(const Decl *Root) const {
|
||||
[&](const CallGraphNode *Node) {
|
||||
if (!ConnectedNodes.insert(Node).second)
|
||||
return;
|
||||
for (auto It = Node->begin(), End = Node->end(); It != End; ++It)
|
||||
VisitNode(*It);
|
||||
for (const CallGraphNode::CallRecord &Callee : *Node)
|
||||
VisitNode(Callee);
|
||||
};
|
||||
|
||||
VisitNode(RootNode);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user