Skip to content

Commit 0c8e475

Browse files
fixup! use range-based for for sc_list
1 parent 838c9f2 commit 0c8e475

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lldb/source/Breakpoint/BreakpointResolver.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ void BreakpointResolver::SetSCMatchesByLine(
207207
const bool ShouldQueryLanguageFilter =
208208
GetBreakpoint()->GetTarget().GetEnableLanguageFilterForLineBreakpoints();
209209

210-
for (uint32_t i = 0; i < sc_list.GetSize(); ++i) {
210+
for (const auto &sc : sc_list) {
211211
if (ShouldQueryLanguageFilter)
212-
if (Language *lang = Language::FindPlugin(sc_list[i].GetLanguage());
213-
lang && lang->IgnoreForLineBreakpoints(sc_list[i]))
212+
if (Language *lang = Language::FindPlugin(sc.GetLanguage());
213+
lang && lang->IgnoreForLineBreakpoints(sc))
214214
continue;
215-
all_scs.push_back(sc_list[i]);
215+
all_scs.push_back(sc);
216216
}
217217

218218
while (all_scs.size()) {

0 commit comments

Comments
 (0)