Skip to content

Conversation

@kazutakahirata
Copy link
Contributor

No description provided.

@llvmbot
Copy link
Member

llvmbot commented May 13, 2025

@llvm/pr-subscribers-lldb

Author: Kazu Hirata (kazutakahirata)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/139758.diff

1 Files Affected:

  • (modified) lldb/tools/lldb-dap/DAP.cpp (+1-2)
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.",

@kazutakahirata kazutakahirata merged commit 85bbf8c into llvm:main May 13, 2025
13 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_001_range_llvm_is_contained_lldb branch May 13, 2025 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants