https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/139758
None >From dbe2a85661292455f0c6c141bb6d61d938212cc6 Mon Sep 17 00:00:00 2001 From: Kazu Hirata <k...@google.com> Date: Tue, 13 May 2025 08:56:44 -0700 Subject: [PATCH] [lldb] Use llvm::is_contained (NFC) --- lldb/tools/lldb-dap/DAP.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lldb/tools/lldb-dap/DAP.cpp b/lldb/tools/lldb-dap/DAP.cpp index 4feca1253be20..51f9da854f4b6 100644 --- a/lldb/tools/lldb-dap/DAP.cpp +++ b/lldb/tools/lldb-dap/DAP.cpp @@ -1194,8 +1194,7 @@ bool SendEventRequestHandler::DoExecute(lldb::SBDebugger debugger, "exited", "initialize", "loadedSource", "module", "process", "stopped", "terminated", "thread"}; - if (std::find(internal_events.begin(), internal_events.end(), name) != - std::end(internal_events)) { + if (llvm::is_contained(internal_events, name)) { std::string msg = llvm::formatv("Invalid use of lldb-dap send-event, event \"{0}\" " "should be handled by lldb-dap internally.", _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits