Author: Kazu Hirata Date: 2025-05-13T15:53:20-07:00 New Revision: 85bbf8c887615b6b2c70353761fad8139d6ecbe8
URL: https://github.com/llvm/llvm-project/commit/85bbf8c887615b6b2c70353761fad8139d6ecbe8 DIFF: https://github.com/llvm/llvm-project/commit/85bbf8c887615b6b2c70353761fad8139d6ecbe8.diff LOG: [lldb] Use llvm::is_contained (NFC) (#139758) Added: Modified: lldb/tools/lldb-dap/DAP.cpp Removed: ################################################################################ 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