diff options
Diffstat (limited to 'source/DataFormatters/DataVisualization.cpp')
| -rw-r--r-- | source/DataFormatters/DataVisualization.cpp | 38 | 
1 files changed, 13 insertions, 25 deletions
diff --git a/source/DataFormatters/DataVisualization.cpp b/source/DataFormatters/DataVisualization.cpp index 23b8b6e128c8..08b3b34447bb 100644 --- a/source/DataFormatters/DataVisualization.cpp +++ b/source/DataFormatters/DataVisualization.cpp @@ -1,10 +1,9 @@  //===-- DataVisualization.cpp ---------------------------------------*- C++  //-*-===//  // -//                     The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception  //  //===----------------------------------------------------------------------===// @@ -51,32 +50,21 @@ DataVisualization::GetSummaryForType(lldb::TypeNameSpecifierImplSP type_sp) {    return GetFormatManager().GetSummaryForType(type_sp);  } -#ifndef LLDB_DISABLE_PYTHON  lldb::SyntheticChildrenSP  DataVisualization::GetSyntheticChildren(ValueObject &valobj,                                          lldb::DynamicValueType use_dynamic) {    return GetFormatManager().GetSyntheticChildren(valobj, use_dynamic);  } -#endif - -#ifndef LLDB_DISABLE_PYTHON -lldb::SyntheticChildrenSP DataVisualization::GetSyntheticChildrenForType( -    lldb::TypeNameSpecifierImplSP type_sp) { -  return GetFormatManager().GetSyntheticChildrenForType(type_sp); -} -#endif  lldb::TypeFilterImplSP  DataVisualization::GetFilterForType(lldb::TypeNameSpecifierImplSP type_sp) {    return GetFormatManager().GetFilterForType(type_sp);  } -#ifndef LLDB_DISABLE_PYTHON  lldb::ScriptedSyntheticChildrenSP  DataVisualization::GetSyntheticForType(lldb::TypeNameSpecifierImplSP type_sp) {    return GetFormatManager().GetSyntheticForType(type_sp);  } -#endif  lldb::TypeValidatorImplSP  DataVisualization::GetValidator(ValueObject &valobj, @@ -97,11 +85,11 @@ bool DataVisualization::AnyMatches(                                         matching_category, matching_type);  } -bool DataVisualization::Categories::GetCategory(const ConstString &category, +bool DataVisualization::Categories::GetCategory(ConstString category,                                                  lldb::TypeCategoryImplSP &entry,                                                  bool allow_create) {    entry = GetFormatManager().GetCategory(category, allow_create); -  return (entry.get() != NULL); +  return (entry.get() != nullptr);  }  bool DataVisualization::Categories::GetCategory( @@ -112,11 +100,11 @@ bool DataVisualization::Categories::GetCategory(    return (entry.get() != nullptr);  } -void DataVisualization::Categories::Add(const ConstString &category) { +void DataVisualization::Categories::Add(ConstString category) {    GetFormatManager().GetCategory(category);  } -bool DataVisualization::Categories::Delete(const ConstString &category) { +bool DataVisualization::Categories::Delete(ConstString category) {    GetFormatManager().DisableCategory(category);    return GetFormatManager().DeleteCategory(category);  } @@ -125,12 +113,12 @@ void DataVisualization::Categories::Clear() {    GetFormatManager().ClearCategories();  } -void DataVisualization::Categories::Clear(const ConstString &category) { +void DataVisualization::Categories::Clear(ConstString category) {    GetFormatManager().GetCategory(category)->Clear(        eFormatCategoryItemSummary | eFormatCategoryItemRegexSummary);  } -void DataVisualization::Categories::Enable(const ConstString &category, +void DataVisualization::Categories::Enable(ConstString category,                                             TypeCategoryMap::Position pos) {    if (GetFormatManager().GetCategory(category)->IsEnabled())      GetFormatManager().DisableCategory(category); @@ -144,7 +132,7 @@ void DataVisualization::Categories::Enable(lldb::LanguageType lang_type) {      lang_category->Enable();  } -void DataVisualization::Categories::Disable(const ConstString &category) { +void DataVisualization::Categories::Disable(ConstString category) {    if (GetFormatManager().GetCategory(category)->IsEnabled())      GetFormatManager().DisableCategory(category);  } @@ -193,17 +181,17 @@ DataVisualization::Categories::GetCategoryAtIndex(size_t index) {  }  bool DataVisualization::NamedSummaryFormats::GetSummaryFormat( -    const ConstString &type, lldb::TypeSummaryImplSP &entry) { +    ConstString type, lldb::TypeSummaryImplSP &entry) {    return GetFormatManager().GetNamedSummaryContainer().Get(type, entry);  }  void DataVisualization::NamedSummaryFormats::Add( -    const ConstString &type, const lldb::TypeSummaryImplSP &entry) { +    ConstString type, const lldb::TypeSummaryImplSP &entry) {    GetFormatManager().GetNamedSummaryContainer().Add(        FormatManager::GetValidTypeName(type), entry);  } -bool DataVisualization::NamedSummaryFormats::Delete(const ConstString &type) { +bool DataVisualization::NamedSummaryFormats::Delete(ConstString type) {    return GetFormatManager().GetNamedSummaryContainer().Delete(type);  }  | 
