mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 22:51:21 +00:00
Make llvm::StringRef to std::string conversions explicit.
This is how it should've been and brings it more in line with std::string_view. There should be no functional change here. This is mostly mechanical from a custom clang-tidy check, with a lot of manual fixups. It uncovers a lot of minor inefficiencies. This doesn't actually modify StringRef yet, I'll do that in a follow-up.
This commit is contained in:
1 parent
5eaf44f99f
commit
adcd026838
895 files changed
+3319
-3014
No files matched your search
@@ -337,7 +337,7 @@ OperatingSystemPython::CreateRegisterContextForThread(Thread *thread,
|
||||
m_interpreter->OSPlugin_RegisterContextData(m_python_object_sp,
|
||||
thread->GetID());
|
||||
if (reg_context_data) {
|
||||
std::string value = reg_context_data->GetValue();
|
||||
std::string value = std::string(reg_context_data->GetValue());
|
||||
DataBufferSP data_sp(new DataBufferHeap(value.c_str(), value.length()));
|
||||
if (data_sp->GetByteSize()) {
|
||||
RegisterContextMemory *reg_ctx_memory = new RegisterContextMemory(
|
||||
|
||||
Reference in new issue
Block a user