[BreakpointList] Simplify/modernize BreakpointList (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 8 Jan 2019 22:07:42 +0000 (22:07 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 8 Jan 2019 22:07:42 +0000 (22:07 +0000)
commitdadbb45f34dbba4f311adecfd484400e8e82d9d0
tree309e67c952bdf48980530c6fbf59f851ee6a09a1
parentbfce66fbc1977912997887d9c96a99dd294f84b2
[BreakpointList] Simplify/modernize BreakpointList (NFC)

I was looking at the code in BreakpointList.cpp and found it deserved a
quick cleanup.

  -  Use std::vector instead of a std::list.
  -  Extract duplicate code for notifying.
  -  Remove code duplication when returning a const value.
  -  Use range-based for loop.
  -  Use early return in loops.

Differential revision: https://reviews.llvm.org/D56425

llvm-svn: 350659
lldb/include/lldb/Breakpoint/BreakpointList.h
lldb/source/Breakpoint/BreakpointList.cpp