[clang-move] Use a range-based for loop (NFC) (#109438)

This commit is contained in:
Kazu Hirata 2024-09-20 13:14:43 -07:00 committed by GitHub
parent 533c7ff2db
commit 9be7f77484
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);