[all-commits] [llvm/llvm-project] 5f22d3: [lldb][NFCI] Change BreakpointIDList::FindBreakpoi...
Alex Langford via All-commits
all-commits at lists.llvm.org
Fri Jan 26 10:19:15 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5f22d3356cda0a9b1521c839c006f61b5cc504fc
https://github.com/llvm/llvm-project/commit/5f22d3356cda0a9b1521c839c006f61b5cc504fc
Author: Alex Langford <alangford at apple.com>
Date: 2024-01-26 (Fri, 26 Jan 2024)
Changed paths:
M lldb/include/lldb/Breakpoint/BreakpointID.h
M lldb/include/lldb/Breakpoint/BreakpointIDList.h
M lldb/source/Breakpoint/BreakpointIDList.cpp
M lldb/source/Commands/CommandObjectBreakpoint.cpp
M lldb/source/Commands/CommandObjectProcess.cpp
Log Message:
-----------
[lldb][NFCI] Change BreakpointIDList::FindBreakpointID to BreakpointIDList::Contains (#79517)
`FindBreakpointID` take a BreakpointID and a pointer to a size_t (so you
can get position information). It returns a bool to indicate whether the
id was found in the list or not.
There are 2 callers of this currently and neither one actually uses the
position information, so I removed it. After that, I renamed it to
Contains to more accurately reflect the intent. Additionally, I changed
the argument type from a reference to a value (because BreakpointID is
just a wrapper around 2 integers, copies are cheap).
More information about the All-commits
mailing list