Instead of writing boilerplate classes to serve as matchers for things
like find_if and erase_if, we can use lambdas. I believe this
simplifies the Listener class.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D152846
[lldb][NFCI] Remove custom matcher classes in Listener in favor of lambdas ClosedPublic Authored by bulbazord on Jun 13 2023, 11:25 AM.
Details Summary Instead of writing boilerplate classes to serve as matchers for things
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 14 2023, 6:38 AM Closed by commit rG193c7d10cb30: [lldb][NFCI] Remove custom matcher classes in Listener in favor of lambdas (authored by bulbazord). · Explain WhyJun 16 2023, 10:51 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 532227 lldb/source/Utility/Listener.cpp
|
Since you used llvm::erased_it above, could you use llvm::find_if here as well to stay consistent. It will also make this line shorter since you can just pass the container instead of passing the beginning and ending iterators.