[clang-tools-extra] 9be7f77 - [clang-move] Use a range-based for loop (NFC) (#109438)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 20 13:14:47 PDT 2024
Author: Kazu Hirata
Date: 2024-09-20T13:14:43-07:00
New Revision: 9be7f7748484e4fb6ca653ac92ba0548ef844ce3
URL: https://github.com/llvm/llvm-project/commit/9be7f7748484e4fb6ca653ac92ba0548ef844ce3
DIFF: https://github.com/llvm/llvm-project/commit/9be7f7748484e4fb6ca653ac92ba0548ef844ce3.diff
LOG: [clang-move] Use a range-based for loop (NFC) (#109438)
Added:
Modified:
clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-move/HelperDeclRefGraph.cpp b/clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
index ae7dc5b2c0548b..36fddcba25d616 100644
--- a/clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
+++ b/clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
@@ -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);
More information about the cfe-commits
mailing list