[lldb][NFCI] Remove custom matcher classes in Listener in favor of lambdas
authorAlex Langford <alangford@apple.com>
Tue, 13 Jun 2023 18:01:24 +0000 (11:01 -0700)
committerAlex Langford <alangford@apple.com>
Fri, 16 Jun 2023 17:50:15 +0000 (10:50 -0700)
commit193c7d10cb30d846d35085a462f8a6c8ad226f1f
treef3c5d15ad38a3d3560d85c70aae0213f002b8d42
parent4c8b6fae4437f9a5b17ddc146592aec0e4c78e02
[lldb][NFCI] Remove custom matcher classes in Listener in favor of lambdas

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.

Differential Revision: https://reviews.llvm.org/D152846
lldb/source/Utility/Listener.cpp