mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
Move the C++ data formatters to the C++ language plugin
llvm-svn: 246873
This commit is contained in:
@@ -42,6 +42,9 @@ LanguageCategory::Get (ValueObject& valobj,
|
||||
{
|
||||
if (!m_category_sp)
|
||||
return false;
|
||||
|
||||
if (!m_category_sp->IsEnabled())
|
||||
return false;
|
||||
|
||||
ConstString type_name = FormatManager::GetTypeForCache(valobj, dynamic);
|
||||
if (type_name)
|
||||
@@ -65,6 +68,9 @@ LanguageCategory::Get (ValueObject& valobj,
|
||||
{
|
||||
if (!m_category_sp)
|
||||
return false;
|
||||
|
||||
if (!m_category_sp->IsEnabled())
|
||||
return false;
|
||||
|
||||
ConstString type_name = FormatManager::GetTypeForCache(valobj, dynamic);
|
||||
if (type_name)
|
||||
@@ -88,6 +94,9 @@ LanguageCategory::Get (ValueObject& valobj,
|
||||
{
|
||||
if (!m_category_sp)
|
||||
return false;
|
||||
|
||||
if (!m_category_sp->IsEnabled())
|
||||
return false;
|
||||
|
||||
ConstString type_name = FormatManager::GetTypeForCache(valobj, dynamic);
|
||||
if (type_name)
|
||||
@@ -112,6 +121,9 @@ LanguageCategory::Get (ValueObject& valobj,
|
||||
if (!m_category_sp)
|
||||
return false;
|
||||
|
||||
if (!m_category_sp->IsEnabled())
|
||||
return false;
|
||||
|
||||
ConstString type_name = FormatManager::GetTypeForCache(valobj, dynamic);
|
||||
if (type_name)
|
||||
{
|
||||
@@ -131,3 +143,17 @@ LanguageCategory::GetCategory () const
|
||||
{
|
||||
return m_category_sp;
|
||||
}
|
||||
|
||||
void
|
||||
LanguageCategory::Enable ()
|
||||
{
|
||||
if (m_category_sp)
|
||||
m_category_sp->Enable(true, TypeCategoryMap::Default);
|
||||
}
|
||||
|
||||
void
|
||||
LanguageCategory::Disable ()
|
||||
{
|
||||
if (m_category_sp)
|
||||
m_category_sp->Disable();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user