llvm-project
dfac0445 - [lldb-dap] Avoid creating temporary instances of std::string (NFC) (#140325)

Commit
175 days ago
[lldb-dap] Avoid creating temporary instances of std::string (NFC) (#140325) EmplaceSafeString accepts StringRef for the last parameter, str, and then internally creates a copy of str via StringRef::str or llvm::json::fixUTF8, so caller do not need to create their own temporary instances of std::string.
Parents
Loading