[Lldb-commits] [lldb] Reapply "[lldb-dap] Validate utf8 protocol messages." (#181930) (PR #182056)
Sergei Druzhkov via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 18 10:52:44 PST 2026
================
@@ -385,10 +488,10 @@ llvm::json::Object CreateRunInTerminalReverseRequest(
std::stringstream ss;
std::string_view delimiter;
- for (const std::optional<std::string> &file : stdio) {
+ for (const std::optional<protocol::String> &file : stdio) {
ss << std::exchange(delimiter, ":");
if (file)
- ss << *file;
+ ss << file->str();
----------------
DrSergei wrote:
I think we don't need this change, because `String` has overloaded `operator <<`
https://github.com/llvm/llvm-project/pull/182056
More information about the lldb-commits
mailing list