Files
clang-p2996/lldb/tools/lldb-dap/Protocol/ProtocolEvents.cpp
John Harrison 07a1d479cc [lldb-dap] Creating a 'capabilities' event helper. (#142831)
This adds a new 'CapabilitiesEventBody' type for having a well
structured type for the event and updates the 'restart' request
to dynamically set their capabilities.
2025-06-10 10:49:07 -07:00

21 lines
645 B
C++

//===-- ProtocolEvents.cpp ------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "Protocol/ProtocolEvents.h"
#include "llvm/Support/JSON.h"
using namespace llvm;
namespace lldb_dap::protocol {
json::Value toJSON(const CapabilitiesEventBody &CEB) {
return json::Object{{"capabilities", CEB.capabilities}};
}
} // namespace lldb_dap::protocol