[Lldb-commits] [PATCH] D70983: [TypeCategory] Nothing passes down a list of languages.
Davide Italiano via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 3 13:58:41 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG15a172bebbc5: [TypeCategory] Nothing passes down a list of languages. (authored by davide).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70983/new/
https://reviews.llvm.org/D70983
Files:
lldb/include/lldb/DataFormatters/TypeCategory.h
lldb/source/DataFormatters/TypeCategory.cpp
Index: lldb/source/DataFormatters/TypeCategory.cpp
===================================================================
--- lldb/source/DataFormatters/TypeCategory.cpp
+++ lldb/source/DataFormatters/TypeCategory.cpp
@@ -13,18 +13,14 @@
using namespace lldb;
using namespace lldb_private;
-TypeCategoryImpl::TypeCategoryImpl(
- IFormatChangeListener *clist, ConstString name,
- std::initializer_list<lldb::LanguageType> langs)
+TypeCategoryImpl::TypeCategoryImpl(IFormatChangeListener *clist,
+ ConstString name)
: m_format_cont("format", "regex-format", clist),
m_summary_cont("summary", "regex-summary", clist),
m_filter_cont("filter", "regex-filter", clist),
m_synth_cont("synth", "regex-synth", clist),
m_validator_cont("validator", "regex-validator", clist), m_enabled(false),
- m_change_listener(clist), m_mutex(), m_name(name), m_languages() {
- for (const lldb::LanguageType lang : langs)
- AddLanguage(lang);
-}
+ m_change_listener(clist), m_mutex(), m_name(name), m_languages() {}
static bool IsApplicable(lldb::LanguageType category_lang,
lldb::LanguageType valobj_lang) {
Index: lldb/include/lldb/DataFormatters/TypeCategory.h
===================================================================
--- lldb/include/lldb/DataFormatters/TypeCategory.h
+++ lldb/include/lldb/DataFormatters/TypeCategory.h
@@ -214,8 +214,7 @@
ValidatorContainer::RegexMatchForEachCallback m_validator_regex;
};
- TypeCategoryImpl(IFormatChangeListener *clist, ConstString name,
- std::initializer_list<lldb::LanguageType> langs = {});
+ TypeCategoryImpl(IFormatChangeListener *clist, ConstString name);
template <typename T> void ForEach(const ForEachCallbacks<T> &foreach) {
GetTypeFormatsContainer()->ForEach(foreach.GetFormatExactCallback());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70983.231986.patch
Type: text/x-patch
Size: 1892 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20191203/8783efef/attachment.bin>
More information about the lldb-commits
mailing list