[Lldb-commits] [lldb] [lldb-dap] Validate utf8 protocol messages. (PR #181261)
Sergei Druzhkov via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 13 04:59:35 PST 2026
================
@@ -15,11 +15,11 @@ bool fromJSON(const llvm::json::Value &Params, PersistenceData &PD,
llvm::json::Value toJSON(const PersistenceData &PD) {
json::Object result{
- {"module_path", PD.module_path},
- {"symbol_name", PD.symbol_name},
+ {"module_path", std::move(PD.module_path)},
+ {"symbol_name", std::move(PD.symbol_name)},
----------------
DrSergei wrote:
`PD` is a const reference, I think `std::move` doesn't have any effects here
https://github.com/llvm/llvm-project/pull/181261
More information about the lldb-commits
mailing list