llvm-project
3f121558 - [lldb-dap] Creating well defined structures for DAP messages. (#129155)

Commit
209 days ago
[lldb-dap] Creating well defined structures for DAP messages. (#129155) This adds a new `Protocol.{h,cpp}` for defining structured types that represent Debug Adapter Protocol messages. This adds static types to define well structure messages for the protocol. This iteration includes only the basic `Event`, `Request` and `Response` types. These types help simplify and improve the validation of messages and give us additional static type checks on the overall structure of DAP messages, compared to today where we tend to use `llvm::json::Value` directly. In a follow-up patch I plan on adding more types as need to allow for incrementally migrating raw `llvm::json::Value` usage to well defined types. --------- Co-authored-by: Adrian Vogelsgesang <adrian.vogelsgesang@tum.de>
Author
Parents
Loading