[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:34 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)},
};
- return result;
+ return std::move(result);
----------------
DrSergei wrote:
nit: NRVO
https://github.com/llvm/llvm-project/pull/181261
More information about the lldb-commits
mailing list