diff --git a/lldb/source/DataFormatters/FormatCache.cpp b/lldb/source/DataFormatters/FormatCache.cpp index 755ee962adde..f7e5c72f7781 100644 --- a/lldb/source/DataFormatters/FormatCache.cpp +++ b/lldb/source/DataFormatters/FormatCache.cpp @@ -68,6 +68,8 @@ FormatCache::Entry &FormatCache::GetEntry(ConstString type) { return m_map[type]; } +namespace lldb_private { + template<> bool FormatCache::Entry::IsCached() { return IsFormatCached(); } @@ -78,6 +80,8 @@ template<> bool FormatCache::Entry::IsCached() { return IsSyntheticCached(); } +} // namespace lldb_private + template bool FormatCache::Get(ConstString type, ImplSP &format_impl_sp) { std::lock_guard guard(m_mutex); diff --git a/lldb/source/DataFormatters/LanguageCategory.cpp b/lldb/source/DataFormatters/LanguageCategory.cpp index 89c0312a09dd..4794186ce9ae 100644 --- a/lldb/source/DataFormatters/LanguageCategory.cpp +++ b/lldb/source/DataFormatters/LanguageCategory.cpp @@ -54,6 +54,8 @@ bool LanguageCategory::Get(FormattersMatchData &match_data, return result; } +namespace lldb_private { + /// Explicit instantiations for the three types. /// \{ template bool @@ -82,6 +84,8 @@ auto &LanguageCategory::GetHardcodedFinder() { return m_hardcoded_synthetics; } +} // namespace lldb_private + template bool LanguageCategory::GetHardcoded(FormatManager &fmt_mgr, FormattersMatchData &match_data, diff --git a/lldb/source/Interpreter/CommandAlias.cpp b/lldb/source/Interpreter/CommandAlias.cpp index 5192cabbdf23..35bf5c4de02c 100644 --- a/lldb/source/Interpreter/CommandAlias.cpp +++ b/lldb/source/Interpreter/CommandAlias.cpp @@ -65,7 +65,8 @@ static bool ProcessAliasOptionsArgs(lldb::CommandObjectSP &cmd_obj_sp, else { for (auto &entry : args.entries()) { if (!entry.ref().empty()) - option_arg_vector->emplace_back("", -1, entry.ref()); + option_arg_vector->emplace_back(std::string(""), -1, + std::string(entry.ref())); } } } diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp index 56d63e4e7c26..f0d24cd27030 100644 --- a/lldb/source/Interpreter/Options.cpp +++ b/lldb/source/Interpreter/Options.cpp @@ -1061,8 +1061,8 @@ llvm::Expected Options::ParseAlias(const Args &args, } if (!option_arg) option_arg = ""; - option_arg_vector->emplace_back(option_str.GetString(), has_arg, - option_arg); + option_arg_vector->emplace_back(std::string(option_str.GetString()), + has_arg, std::string(option_arg)); // Find option in the argument list; also see if it was supposed to take an // argument and if one was supplied. Remove option (and argument, if