Add the ability for formatter categories to be bound to one or more languages

What that does is it restricts formatters in those categories to only match to types coming from "compatible" source languages

llvm-svn: 247872
This commit is contained in:
Enrico Granata
2015-09-17 00:14:50 +00:00
parent bf8f00586a
commit fa6b278f9c
11 changed files with 376 additions and 44 deletions

View File

@@ -164,7 +164,7 @@ DataVisualization::Categories::Enable (const ConstString& category,
{
if (GetFormatManager().GetCategory(category)->IsEnabled())
GetFormatManager().DisableCategory(category);
GetFormatManager().EnableCategory(category, pos);
GetFormatManager().EnableCategory(category, pos, std::initializer_list<lldb::LanguageType>());
}
void