[lldb] Use std::make_unique<> (NFC)

Update the rest of lldb to use std::make_unique<>. I used clang-tidy to
automate this, which probably missed cases that are wrapped in ifdefs.
This commit is contained in:
Jonas Devlieghere
2020-06-24 17:44:33 -07:00
parent b5c24c24a4
commit 06412dae82
44 changed files with 154 additions and 144 deletions

View File

@@ -169,7 +169,7 @@ ModuleLock::ModuleLock(const FileSpec &root_dir_spec, const UUID &uuid,
return;
}
m_lock.reset(new lldb_private::LockFile(m_file_up->GetDescriptor()));
m_lock = std::make_unique<lldb_private::LockFile>(m_file_up->GetDescriptor());
error = m_lock->WriteLock(0, 1);
if (error.Fail())
error.SetErrorStringWithFormat("Failed to lock file: %s",