@@ -382,8 +382,8 @@ bool TargetList::DeleteTarget(TargetSP &target_sp) {
382382TargetSP TargetList::FindTargetWithExecutableAndArchitecture (
383383 const FileSpec &exe_file_spec, const ArchSpec *exe_arch_ptr) const {
384384 std::lock_guard<std::recursive_mutex> guard (m_target_list_mutex);
385- auto it = std ::find_if (m_target_list. begin (), m_target_list. end (),
386- [&exe_file_spec, exe_arch_ptr](const TargetSP &item) {
385+ auto it = llvm ::find_if (
386+ m_target_list, [&exe_file_spec, exe_arch_ptr](const TargetSP &item) {
387387 Module *exe_module = item->GetExecutableModulePointer ();
388388 if (!exe_module ||
389389 !FileSpec::Match (exe_file_spec, exe_module->GetFileSpec ()))
@@ -401,11 +401,10 @@ TargetSP TargetList::FindTargetWithExecutableAndArchitecture(
401401
402402TargetSP TargetList::FindTargetWithProcessID (lldb::pid_t pid) const {
403403 std::lock_guard<std::recursive_mutex> guard (m_target_list_mutex);
404- auto it = std::find_if (m_target_list.begin (), m_target_list.end (),
405- [pid](const TargetSP &item) {
406- auto *process_ptr = item->GetProcessSP ().get ();
407- return process_ptr && (process_ptr->GetID () == pid);
408- });
404+ auto it = llvm::find_if (m_target_list, [pid](const TargetSP &item) {
405+ auto *process_ptr = item->GetProcessSP ().get ();
406+ return process_ptr && (process_ptr->GetID () == pid);
407+ });
409408
410409 if (it != m_target_list.end ())
411410 return *it;
@@ -419,10 +418,9 @@ TargetSP TargetList::FindTargetWithProcess(Process *process) const {
419418 return target_sp;
420419
421420 std::lock_guard<std::recursive_mutex> guard (m_target_list_mutex);
422- auto it = std::find_if (m_target_list.begin (), m_target_list.end (),
423- [process](const TargetSP &item) {
424- return item->GetProcessSP ().get () == process;
425- });
421+ auto it = llvm::find_if (m_target_list, [process](const TargetSP &item) {
422+ return item->GetProcessSP ().get () == process;
423+ });
426424
427425 if (it != m_target_list.end ())
428426 target_sp = *it;
@@ -436,8 +434,9 @@ TargetSP TargetList::GetTargetSP(Target *target) const {
436434 return target_sp;
437435
438436 std::lock_guard<std::recursive_mutex> guard (m_target_list_mutex);
439- auto it = std::find_if (m_target_list.begin (), m_target_list.end (),
440- [target](const TargetSP &item) { return item.get () == target; });
437+ auto it = llvm::find_if (m_target_list, [target](const TargetSP &item) {
438+ return item.get () == target;
439+ });
441440 if (it != m_target_list.end ())
442441 target_sp = *it;
443442
0 commit comments