Fixes for uniformity in type clear and delete commands
llvm-svn: 253113
This commit is contained in:
parent
92655f58bc
commit
54c22c2245
|
@ -1160,10 +1160,8 @@ private:
|
||||||
PerCategoryCallback(void* param,
|
PerCategoryCallback(void* param,
|
||||||
const lldb::TypeCategoryImplSP& cate)
|
const lldb::TypeCategoryImplSP& cate)
|
||||||
{
|
{
|
||||||
cate->GetTypeFormatsContainer()->Clear();
|
cate->Clear(eFormatCategoryItemValue | eFormatCategoryItemRegexValue);
|
||||||
cate->GetRegexTypeFormatsContainer()->Clear();
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -3581,10 +3579,11 @@ private:
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
PerCategoryCallback(void* param,
|
PerCategoryCallback(void* param,
|
||||||
const lldb::TypeCategoryImplSP& cate)
|
const lldb::TypeCategoryImplSP& category_sp)
|
||||||
{
|
{
|
||||||
ConstString *name = (ConstString*)param;
|
ConstString *name = (ConstString*)param;
|
||||||
return cate->Delete(*name, eFormatCategoryItemFilter | eFormatCategoryItemRegexFilter);
|
category_sp->Delete(*name, eFormatCategoryItemFilter | eFormatCategoryItemRegexFilter);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -3761,10 +3760,11 @@ private:
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
PerCategoryCallback(void* param,
|
PerCategoryCallback(void* param,
|
||||||
const lldb::TypeCategoryImplSP& cate)
|
const lldb::TypeCategoryImplSP& category_sp)
|
||||||
{
|
{
|
||||||
ConstString* name = (ConstString*)param;
|
ConstString *name = (ConstString*)param;
|
||||||
return cate->Delete(*name, eFormatCategoryItemSynth | eFormatCategoryItemRegexSynth);
|
category_sp->Delete(*name, eFormatCategoryItemSynth | eFormatCategoryItemRegexSynth);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue