mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
Added an error message when the user tries to add a filter when a synthetic provider for the same type is already defined in the same category
The converse is also true: an error is shown when the user tries to add a synthetic provider to a category that already has a filter for the same type llvm-svn: 137493
This commit is contained in:
@@ -1837,13 +1837,27 @@ Debugger::Formatting::GetSummaryFormat(ValueObject& vobj,
|
||||
return GetFormatManager().Get(vobj, entry, use_dynamic);
|
||||
}
|
||||
bool
|
||||
Debugger::Formatting::GetSyntheticFilter(ValueObject& vobj,
|
||||
lldb::DynamicValueType use_dynamic,
|
||||
lldb::SyntheticChildrenSP& entry)
|
||||
Debugger::Formatting::GetSyntheticChildren(ValueObject& vobj,
|
||||
lldb::DynamicValueType use_dynamic,
|
||||
lldb::SyntheticChildrenSP& entry)
|
||||
{
|
||||
return GetFormatManager().Get(vobj, entry, use_dynamic);
|
||||
}
|
||||
|
||||
bool
|
||||
Debugger::Formatting::AnyMatches(ConstString type_name,
|
||||
FormatCategory::FormatCategoryItems items,
|
||||
bool only_enabled,
|
||||
const char** matching_category,
|
||||
FormatCategory::FormatCategoryItems* matching_type)
|
||||
{
|
||||
return GetFormatManager().AnyMatches(type_name,
|
||||
items,
|
||||
only_enabled,
|
||||
matching_category,
|
||||
matching_type);
|
||||
}
|
||||
|
||||
bool
|
||||
Debugger::Formatting::Categories::Get(const ConstString &category, lldb::FormatCategorySP &entry)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user