Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3c1a09d

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 alreadyhave a callable.
1 parent9d9662e commit3c1a09d

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
voidServerURLsChangedCallback() {
8888
m_server_urls =GetDebugInfoDURLs();
8989
llvm::SmallVector<llvm::StringRef> dbginfod_urls;
90-
llvm::for_each(m_server_urls, [&](constauto &obj) {
90+
for(constauto &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)

[8]ページ先頭

©2009-2025 Movatter.jp