LLDB mainline
|
#include <Tool.h>
Public Member Functions | |
~CommandTool ()=default | |
llvm::Expected< lldb_protocol::mcp::CallToolResult > | Call (const lldb_protocol::mcp::ToolArguments &args) override |
std::optional< llvm::json::Value > | GetSchema () const override |
Tool (std::string name, std::string description) | |
Public Member Functions inherited from lldb_protocol::mcp::Tool | |
Tool (std::string name, std::string description) | |
virtual | ~Tool ()=default |
lldb_protocol::mcp::ToolDefinition | GetDefinition () const |
const std::string & | GetName () |
Definition at line 20 of file source/Plugins/Protocol/MCP/Tool.h.
|
default |
|
overridevirtual |
Implements lldb_protocol::mcp::Tool.
Definition at line 45 of file Plugins/Protocol/MCP/Tool.cpp.
References createStringError(), lldb_private::eLazyBoolYes, lldb_private::Debugger::FindDebuggerWithID(), lldb_private::fromJSON(), lldb_private::CommandReturnObject::GetErrorString(), lldb_private::CommandReturnObject::GetOutputString(), and lldb_private::CommandReturnObject::Succeeded().
|
overridevirtual |
Reimplemented from lldb_protocol::mcp::Tool.
Definition at line 81 of file Plugins/Protocol/MCP/Tool.cpp.
Tool::Tool | ( | std::string | name, |
std::string | description ) |
Definition at line 21 of file Protocol/MCP/Tool.cpp.