Skip to content

Commit 3c1a09d

Browse files
[lldb] Use a range-based for loop instead of llvm::for_each (NFC) (#149541)
LLVM Coding Standards discourages llvm::for_each unless we already have a callable.
1 parent 9d9662e commit 3c1a09d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/source/Plugins/SymbolLocator/Debuginfod/SymbolLocatorDebuginfod.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@ class PluginProperties : public Properties {
8787
void ServerURLsChangedCallback() {
8888
m_server_urls = GetDebugInfoDURLs();
8989
llvm::SmallVector<llvm::StringRef> dbginfod_urls;
90-
llvm::for_each(m_server_urls, [&](const auto &obj) {
90+
for (const auto &obj : m_server_urls)
9191
dbginfod_urls.push_back(obj.ref());
92-
});
9392
llvm::setDefaultDebuginfodUrls(dbginfod_urls);
9493
}
9594
// Storage for the StringRef's used within the Debuginfod library.

0 commit comments

Comments
 (0)